Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current session lost when auth function call fails #904

Open
2 tasks done
bombillazo opened this issue May 9, 2024 · 0 comments
Open
2 tasks done

Current session lost when auth function call fails #904

bombillazo opened this issue May 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bombillazo
Copy link

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

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:

  1. Create a supabase client and log in
  2. Call an auth function with invalid parameters
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant