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: add sign_out() scope option #381

Merged
merged 2 commits into from
Dec 7, 2023
Merged

Conversation

silentworks
Copy link
Contributor

@silentworks silentworks commented Dec 7, 2023

What kind of change does this PR introduce?

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

Closes #371

What is the current behavior?

Only supports global scope

What is the new behavior?

Supports global, local and others scope.

Additional context

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

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (1440dd6) 45.30% compared to head (34a3ddf) 45.33%.

Files Patch % Lines
gotrue/_async/gotrue_client.py 20.00% 4 Missing ⚠️
gotrue/_sync/gotrue_client.py 20.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #381      +/-   ##
==========================================
+ Coverage   45.30%   45.33%   +0.03%     
==========================================
  Files          23       23              
  Lines        1958     1963       +5     
==========================================
+ Hits          887      890       +3     
- Misses       1071     1073       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@silentworks silentworks merged commit 4ec8842 into main Dec 7, 2023
13 checks passed
@silentworks silentworks deleted the silentworks/signout-scope branch December 7, 2023 10:05
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.

Add signout scopes to GoTrue sign_out method
2 participants