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
* fix(auth): remove broken fallback cookie and AbortController timeout
Remove the firebase-auth-token fallback cookie that was never read by
middleware or auth.ts, causing a false sense of resilience. Remove the
AbortController timeout on the session POST that was aborting before the
server could respond on cold starts. Login now awaits the session POST
fully and surfaces clear error messages on failure.
- Remove firebase-auth-token cookie from login, logout, sidebar, user-nav
- Remove AbortController from login page session POST
- Remove onIdTokenChanged listener from ProtectedRoute
- Remove onIdTokenChange export from client auth module
- Revert middleware to only check __session cookie
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix(ui): mobile sidebar background, back buttons, header text, close btn
- Fix transparent mobile sidebar by adding --sidebar CSS variable and
Tailwind color mapping so bg-sidebar resolves correctly
- Add "← Back to Dashboard" link to athletes, analytics, settings,
profile, and games pages (matching dream-gym style)
- Change header text from "Dashboard" to "Hustle"
- Move sidebar close button to right of HUSTLE logo
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix(auth,ui): add session POST timeout+retry, extract BackToDashboard component
Address code review feedback:
1. Login session POST now has a 30s client-side timeout (AbortController)
with one automatic retry on transient failures (504, 500, network error,
timeout). Prevents indefinite loading state while tolerating cold starts.
2. Extract BackToDashboard into a reusable component used by athletes,
analytics, games, profile, and settings pages — reduces duplication.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix(auth): increase set-session timeouts from 10s to 25s for cold starts
__session is now the sole auth mechanism (no fallback cookie). Server-side
verifyIdToken/createSessionCookie timeouts of 10s are too aggressive for
Firebase Admin cold starts (10-20s documented). Increased to 25s to stay
under the client's 30s AbortController timeout while accommodating cold starts.
Addresses Qodo review finding on PR #39.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---------
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: jeremylongshore <[email protected]>
0 commit comments