Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

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

@codecov
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
@silentworks silentworks deleted the silentworks/signout-scope branch December 7, 2023 10:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add signout scopes to GoTrue sign_out method

3 participants