use correct callbackUrl for login with tor
This commit is contained in:
parent
5fb310db5f
commit
b7132cc962
|
@ -125,7 +125,12 @@ export default function Header ({ sub }) {
|
|||
setFired(true)
|
||||
}, [router.asPath])
|
||||
}
|
||||
return path !== '/login' && !path.startsWith('/invites') && <Button id='login' onClick={signIn}>login</Button>
|
||||
return path !== '/login' && !path.startsWith('/invites') &&
|
||||
<Button
|
||||
id='login'
|
||||
onClick={() => signIn(null, { callbackUrl: window.location.origin + router.asPath })}
|
||||
>login
|
||||
</Button>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue