use correct callbackUrl for login with tor

This commit is contained in:
keyan 2022-09-06 16:10:13 -05:00
parent 5fb310db5f
commit b7132cc962
1 changed files with 6 additions and 1 deletions

View File

@ -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>
}
}