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): include Cloudflare error codes in network error handling [from supabase-js] #248
Expanded NETWORK_ERROR_CODES to include Cloudflare-specific codes (520-524, 530). These infrastructure errors should not cause session invalidation.
Current State in supabase-csharp
FailureReason.cs handles specific HTTP codes (400, 401, 403, 404, 422, 429) but has no entries for Cloudflare codes. They fall through to Unknown rather than being classified as network/transient errors. NetworkStatus.cs only uses OS-level network availability checks.
Implementation Guidance
Add Cloudflare error codes to the failure detection logic so they are treated as transient network errors rather than auth failures. These should trigger retry behavior, not session invalidation.
Key Behaviors to Match
Error codes 520-524, 530 treated as transient/retryable
These codes do NOT trigger session removal
Consistent with standard gateway errors (502, 503, 504)
Acceptance Criteria
Cloudflare codes handled as network/transient errors
Session not invalidated on Cloudflare errors
Unit tests
No breaking changes
Context
supabase-js version: v2.103.1+
Parity tracking: This issue was auto-generated by SDK parity analysis
Activity
Tr00d commentedon Sep 10, 2026
Fixed with #398