Skip to content

Harden/close auth review gaps - #33

Merged
felixrichardt merged 5 commits into
mainfrom
harden/close-auth-review-gaps
Oct 2, 2026
Merged

felixrichardt merged 5 commits into
mainfrom
harden/close-auth-review-gaps

Conversation

@felixrichardt

Copy link
Copy Markdown
Contributor

No description provided.

Revalidate sessions against the live user, hash session keys, and keep one
outstanding magic link per user. Require a binding secret when one was
issued, canonicalize client IPs, and cap send and verify failures.

BREAKING CHANGE: Sessions and magic links from 0.3.0 no longer authenticate.
Cookie defaults are __Host-session and __Host-ml-bind with a 7-day Max-Age.
findUserById must return the live user or getSession ends the session.
Document live session checks, binding rules, and no-referrer verification
responses. Development notes match in-memory unit tests.
Cleanup deletes only the merged dependency branch when no open pull request
still uses that head.
@felixrichardt
felixrichardt merged commit c8b5743 into main Oct 2, 2026
1 check 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.

1 participant