You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clicking magic link twice logs user out via _removeSession #1685
A clear and concise description of what the bug is.
To Reproduce
Send a Magic Link to a user email
Click on the magic link in the email (user is now logged in)
User clicks magic link again (User becomes logged out)
Expected behavior
The user is logged out when a user clicks a magic link twice. It should keep the user logged in because they already have a valid session from the first magic link click.
Here is the offending line:
// failed login attempt via url,// remove old session as in verifyOtp, signUp and signInWith*awaitthis._removeSession()
There was a previous attempt to fix issues like this here. @kangmingtay was this missed or was there a reason to not remove the _removeSession for url based logins? supabase/auth-js#915
Activity
silentworks commentedon Feb 20, 2025
I can replicate this bug.
Screencast.from.2025-02-20.17-43-06.webm