Skip to content

Reject stale authenticated sessions - #24

Merged
karansaini46 merged 1 commit into
mainfrom
codex-fix-stale-user-session
May 15, 2026
Merged

karansaini46 merged 1 commit into
mainfrom
codex-fix-stale-user-session

Conversation

@karansaini46

Copy link
Copy Markdown
Owner

Summary

  • verify protected-route JWTs against the live user record before continuing
  • return a clean 401 for deleted/missing users so the client refresh/logout flow handles stale sessions
  • add regression coverage for a validly signed token whose user no longer exists

Verification

  • pnpm --filter @invoiceflow/server lint
  • full server test suite left to CI because the local suite mutates the configured database

@vercel

vercel Bot commented May 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
invoice-flow-client Ready Ready Preview, Comment May 15, 2026 8:14pm

@karansaini46
karansaini46 merged commit 585517f into main May 15, 2026
2 checks passed
@karansaini46
karansaini46 deleted the codex-fix-stale-user-session branch May 15, 2026 20:20

This branch was successfully deployed

1 active deployment
Preview — cb8198e2 Deployed May 15, 2026 by vercel[bot]
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.

1 participant