Skip to content

fix: handle expired auth sessions on main#249

Merged
NickMonrad merged 1 commit into
mainfrom
fix/expired-auth-session-main
Jun 1, 2026
Merged

fix: handle expired auth sessions on main#249
NickMonrad merged 1 commit into
mainfrom
fix/expired-auth-session-main

Conversation

@NickMonrad

Copy link
Copy Markdown
Owner

Summary

Cherry-picks the expired-auth-session fix from the timeline UX branch onto main so 401 expiry clears both local storage and the in-memory auth context consistently.

Related issue

Closes #233

Changes

  • cherry-pick the expired auth session handling from feature/timeline-ux-rework
  • add shared auth session helpers so token/user updates stay in sync
  • add a client test covering external session clearing and invalid stored payloads

E2E Tests

Tests added/modified:

  • None

E2E test results (npm run test:e2e):

Not run for this cherry-pick.

Testing

  • npm test passes in /server
  • npx tsc --noEmit passes in /server
  • npx tsc --noEmit passes in /client
  • npm run test:e2e passes (Playwright — requires dev servers on :3001 and :5173)
  • e2e/TESTS.md updated to reflect any test additions or changes

Notes

  • This is a surgical cherry-pick of commit 0f12fc8 onto main.
  • The cherry-pick conflicted in client/src/hooks/useAuth.tsx because main had diverged, so the auth-session fix was merged into the current main shape without changing the existing register flow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 0f12fc8)
@NickMonrad NickMonrad force-pushed the fix/expired-auth-session-main branch from fb2517b to 84f0433 Compare June 1, 2026 06:28
@NickMonrad NickMonrad merged commit 2e929f2 into main Jun 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource Optimisation feature — find optimal resource counts and ramp-up dates for Timeline

1 participant