Skip to content

Commit 9fd8e74

Browse files
authored
Merge pull request #95 from hanzoai/auth/fix-common-auth
Auth: fix auth widget
2 parents 2ba3dec + 2237770 commit 9fd8e74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/auth/components/auth-widget.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ const AuthWidget: React.FC<{
6161
</Button>
6262
) : (
6363
<LinkElement
64-
def={{href: `${process.env.NEXT_PUBLIC_AUTH_ORIGIN}/login`, title: 'Login', variant: 'primary'} satisfies LinkDef}
64+
def={{
65+
href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window.location.href}`,
66+
title: 'Login',
67+
variant: 'primary',
68+
newTab: false
69+
} satisfies LinkDef}
6570
className='h-8 w-fit !min-w-0'
6671
/>
6772
)

0 commit comments

Comments
 (0)