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

feat(composables): add useSubabaseAuthClient #115

Merged
merged 3 commits into from Nov 22, 2022
Merged

Conversation

larbish
Copy link
Collaborator

@larbish larbish commented Nov 22, 2022

⚠️ This PR involves BREAKING CHANGES ⚠️

In order to resolve #114, I have made the choice to separate the useSupabaseClient in two other composables:

  • The useSupabaseAuthClient is dedicated to authentification purpose only. It won't be recreate if your token expires, it is used in the client plugin to listen to onAuthStateChange events.
  • The useSupabaseClient is now only useful for data request.

To avoid regression you just need to use useSupabaseAuthClient instead of useSupabaseClient everywhere you use Supabase auth methods

Documentation has been updated.

@larbish larbish merged commit 380f7c1 into main Nov 22, 2022
laurensiusadi added a commit to laurensiusadi/supabase that referenced this pull request Jan 27, 2023
@larbish larbish deleted the feat/auth-client branch February 7, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

signOut() not deleting cookie
1 participant