You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parity(auth): SignOut() should clear local session even if remote call fails [from supabase-js] #280
signOut() (for any scope other than 'others') now clears the local session and removes the PKCE code verifier even when the remote sign-out API call fails, instead of only doing so on success. A network/API error no longer leaves a stale local session that appears "signed in" client-side.
Confirmed in supabase-csharp: Gotrue/Client.cs:426-431SignOut() awaits _api.SignOut(...) unguarded; if the remote call throws (network/API error), the exception propagates and UpdateSession(null)/NotifyAuthStateChange(SignedOut) never run, leaving a stale local session.
Implementation Guidance
Expected API Surface
SignOut() should clear the local session unconditionally for scopes other than "others", regardless of whether the remote API call succeeds or throws.
Acceptance Criteria
Fix implemented matching supabase-js behavior
Unit test: remote sign-out throwing a network error still results in local session being cleared
No breaking changes to "others" scope behavior
Context
supabase-js version: v3.0.0-next.29 / 2.110.6
Parity tracking: This issue was auto-generated by SDK parity analysis
Related parity issues: supabase-py (SDK-1326), supabase-kt (#1358)
Activity
grdsdev commentedon Jul 16, 2026
Related parity issues:
fresh55 commentedon Aug 24, 2026
Same method as #258, so probably worth fixing together.