We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e37dda commit 1d5cf48Copy full SHA for 1d5cf48
packages/auth/components/auth-widget.tsx
@@ -62,7 +62,7 @@ const AuthWidget: React.FC<{
62
) : (
63
<LinkElement
64
def={{
65
- href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window.location.href}`,
+ href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window ? window.location.href : ''}`,
66
title: 'Login',
67
variant: 'primary',
68
newTab: false
0 commit comments