bug(gotrue): stateless SignOut can only log out globally
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- csharp
- Domain
- authentication
Research direction
Start with packages/Gotrue/Gotrue/StatelessClient.cs at StatelessClient.SignOut and follow its call into packages/Gotrue/Gotrue/Api.cs at Api.SignOut. Compare these with Client.SignOut(SignOutScope) and the IGotrueStatelessClient documentation. Done means stateless sign-out can request the local scope and its documentation no longer says it always revokes all refresh tokens.
Written by the indexing model from the issue text.
Description
Ran into this signing users out server-side. I wanted local and there's no way to ask for it.
await client.SignOut(accessToken, options);
// POST /logout?scope=global
StatelessClient.SignOut calls Api.SignOut(accessToken) with no scope, and Api.SignOut always writes ?scope= from its default. The stateful Client.SignOut(SignOutScope) takes one.
#148 closed as "Available in >= Supabase.Gotrue@5.0.6" but missed the stateless client, and its doc still says "This will revoke all refresh tokens for the user."
- Dominant language
- C#
- Stars
- 701
- Forks
- 106
- Avg merge
- 16h 35m
- Merged PRs (30d)
- 45
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/supabase-csharp
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
supabase/supabase-csharp#437 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
supabase/supabase-csharp#427 ·
-
supabase/supabase-csharp#409 · 1 comment · 1 assignee ·
-
area: realtime bug parity
supabase/supabase-csharp#393 · 1 assignee ·
-
bug
supabase/supabase-csharp#377 · 3 comments · 1 assignee ·
All issues in supabase/supabase-csharp
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·