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): return null from session storage on JSON parse failure [from supabase-js] #263
Auto-generated parity issue — may be a false positive.
This issue was created automatically by /sync-sdk-parity from a heuristic analysis of recent supabase-js commits. The tooling has limited insight into language-specific idioms and may have:
misidentified a JS-only change as cross-language relevant,
missed an existing implementation in this SDK under a different name,
or proposed an API shape that doesn't fit this language's conventions.
It is the SDK author's responsibility to validate the need before implementing. If this change does not apply to this SDK, please close the issue with a short note explaining why.
SDK Parity: C# implementation needed
A defensive fix was made in supabase-js auth that may apply to this repository. Please confirm applicability before starting work.
Session-storage reader returns null on JSON parse failure, treating corrupted entries as absent rather than crashing downstream.
Implementation Guidance (C#)
privateSession?ReadSessionFromStorage(){varraw=_storage.GetItem(_storageKey);if(raw==null)returnnull;try{returnJsonSerializer.Deserialize<Session>(raw);}catch(JsonException){returnnull;// Corrupted — treat as no session}}
Key Behaviors to Match
Invalid JSON in session storage → null, not exception
Acceptance Criteria
Corrupted session storage returns null, not throws
Activity
fresh55 commentedon Oct 12, 2026
Looks covered by ad253524 (#394): a persistence exception is logged and the client starts without a session.
@Tr00d closable?