BREAKING: Supabase JWT Authentication Failures – Immediate Workarounds
Supabase experiencing widespread 401 errors from JWT token rejections. Authentication systems affected. Workarounds and status checks inside.
Incident Status
Supabase is currently experiencing authentication failures across multiple services, with JWT (JSON Web Token) rejections causing 401 errors for authenticated requests.
What's Affected
Note: Unauthenticated read operations may still function depending on your policies.
Immediate Workarounds
#### 1. Token Refresh Strategy ```javascript // Force token refresh before requests const { data, error } = await supabase.auth.refreshSession(); if (error) console.error('Refresh failed:', error); // Retry your API call after refresh ```
#### 2. Temporary Bypass (Development Only)
#### 3. Fallback Authentication ```javascript // Use anon key for public queries temporarily const { data } = await supabase .from('table_name') .select('*') .limit(10); ```
#### 4. Connection Pooling Reset
localStorage.clear()How to Check If You're Affected
Quick diagnostic:
1. Check Supabase status page: https://status.supabase.com
2. Test in browser console:
```javascript
const { data: { user } } = await supabase.auth.getUser();
console.log(user); // null = affected
```
3. Monitor server logs for: JWT verification failed, Invalid token, 401 Unauthorized
4. Check network tab for 401 responses on /auth endpoints
Alternatives & Workarounds
Short-term:
Interim solutions:
Recommended Actions
1. Immediately: Deploy token refresh logic to production 2. Document: Current workarounds in your incident log 3. Monitor: Watch Supabase status dashboard continuously 4. Communicate: Notify users of potential auth issues 5. Prepare: Have Firebase/Auth0 setup ready as backup
What We Don't Know
Next Steps
Monitor official Supabase Discord and status page. This report will update as more information becomes available.
Last Updated: Real-time – check status page for latest updates.