Skip to content

[codex] harden auth token persistence#1003

Open
saurabhhhcodes wants to merge 1 commit into
SdSarthak:mainfrom
saurabhhhcodes:fix/auth-token-persistence-930
Open

[codex] harden auth token persistence#1003
saurabhhhcodes wants to merge 1 commit into
SdSarthak:mainfrom
saurabhhhcodes:fix/auth-token-persistence-930

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

What changed

  • Switched the persisted auth store from localStorage to sessionStorage so the JWT is no longer readable from localStorage.getItem("auth-storage").
  • Kept login/logout behavior and bearer-token injection unchanged.
  • Aligned a small frontend build issue so the auth page and document listing code still typecheck cleanly.

Validation

  • git diff --check
  • npm run build in frontend/

Closes #930

@saurabhhhcodes saurabhhhcodes marked this pull request as ready for review June 13, 2026 10:31
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.

JWT stored in localStorage via Zustand persist

2 participants