Krao Hasanee
|
195c828f8b
|
Improve auth performance: cache profile, remove double fetch, reduce timeout
- Seed currentUser from localStorage instantly on load (no loading flash)
- Remove getSession() duplicate — onAuthStateChange handles everything
- Fetch fresh profile in background while cached version shows immediately
- Reduce fallback timeout from 5s to 2s
- Explicit Supabase client auth options for reliability
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-27 10:41:42 -04:00 |
|