Skip to content

Regenerate session IDs after authentication - #1

Open
g105b wants to merge 2 commits into
masterfrom
fix/rotate-session-after-authentication
Open

g105b wants to merge 2 commits into
masterfrom
fix/rotate-session-after-authentication

Conversation

@g105b

@g105b g105b commented Nov 5, 2026

Copy link
Copy Markdown
Member

Regenerate session IDs after authentication across Node.js, Express and Next.js. Invalidate old sessions and preserve other data. Custom session containers need regeneration and custom stores need a delete method.

Add regression tests for old cookies, response replay and rotation failures. All 89 tests and type checks pass.

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