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
Currently, the client logic calls _removeSession to clear the session when doing an auth call. If the call fails, the existing session is never restored and is lost, effectively disconnecting the user session.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Create a supabase client and log in
Call an auth function with invalid parameters
Get the client session
Expected behavior
The existing client session is kept in the event of a fail.
System information
Version of supabase-js: 2.64.2
The text was updated successfully, but these errors were encountered:
## What kind of change does this PR introduce?
* Replaces #854
* Fixes#853, #904
* We don't need to remove the existing session prematurely. This causes
some issues when users want to implement some sort of switch-account
functionality since the existing session will always be removed
regardless of whether the signup / sign-in attempt succeeds.
* It's safe to remove `_removeSession` since calling `_saveSession`
multiple times will just replace the existing session
Bug report
Describe the bug
Currently, the client logic calls
_removeSession
to clear the session when doing an auth call. If the call fails, the existing session is never restored and is lost, effectively disconnecting the user session.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The existing client session is kept in the event of a fail.
System information
The text was updated successfully, but these errors were encountered: