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

@ -190,7 +190,10 @@ export const SharedQuizView: React.FC<SharedQuizViewProps> = ({ onHostQuiz, shar
</button>
) : (
<button
onClick={() => auth.signinRedirect()}
onClick={() => {
sessionStorage.setItem('kaboot_auth_return_url', window.location.pathname);
auth.signinRedirect();
}}
className="w-full bg-gray-100 text-gray-600 py-3 rounded-2xl text-lg font-black hover:bg-gray-200 shadow-[0_4px_0_#d1d5db] active:shadow-none active:translate-y-[4px] transition-all flex items-center justify-center gap-2"
>
<LogIn size={20} /> Sign in to Save