Fix sign in redirect

This commit is contained in:
Joey Yakimowich-Payne 2026-01-16 10:39:58 -07:00
commit c550534d6c
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
4 changed files with 20 additions and 4 deletions

View file

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