Fix sign in redirect
This commit is contained in:
parent
c98e262fd0
commit
c550534d6c
4 changed files with 20 additions and 4 deletions
|
|
@ -90,7 +90,10 @@ export const AuthButton: React.FC<AuthButtonProps> = ({ onAccountSettingsClick }
|
|||
|
||||
return (
|
||||
<button
|
||||
onClick={() => auth.signinRedirect()}
|
||||
onClick={() => {
|
||||
sessionStorage.setItem('kaboot_auth_return_url', window.location.pathname + window.location.search);
|
||||
auth.signinRedirect();
|
||||
}}
|
||||
className="flex items-center gap-2 bg-white/10 px-4 py-2 rounded-xl hover:bg-white/20 transition font-bold"
|
||||
>
|
||||
<LogIn size={20} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue