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(gotrue): add scope to signOut #175

Merged
merged 1 commit into from
Dec 5, 2023
Merged

feat(gotrue): add scope to signOut #175

merged 1 commit into from
Dec 5, 2023

Conversation

jknlsn
Copy link
Contributor

@jknlsn jknlsn commented Dec 5, 2023

What kind of change does this PR introduce?

Adds the scope parameter to the signOut method which can be used to control which sessions should be signed out of the account.

What is the current behavior?

Calling signOut() with no scope specified signs out all sessions, revoking all refresh tokens for the user.
This behaviour is maintained with the default scope parameter .global.

What is the new behavior?

Adds scope parameter to signOut().

Additional context

supabase/auth#1112
supabase/auth-js#713
supabase/supabase-flutter#530

@jknlsn jknlsn requested a review from grdsdev as a code owner December 5, 2023 18:45
Copy link
Collaborator

@grdsdev grdsdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thank you @jknlsn for the changes.

@grdsdev grdsdev enabled auto-merge (squash) December 5, 2023 20:34
@grdsdev grdsdev merged commit 8c7c257 into supabase:main Dec 5, 2023
2 checks passed
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.

2 participants