Skip to content

fix(auth): reset and callback pages read the token from the fragment - #16

Merged
Domantas merged 1 commit into
mainfrom
fix/link-tokens-in-fragment
Oct 12, 2026
Merged

Domantas merged 1 commit into
mainfrom
fix/link-tokens-in-fragment

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

Reset and magic-link pages read the token from the URL fragment first (query fallback for old emails), remove it from the address bar, and send the reset token only in the POST body. vitest 140/140, typecheck, eslint, prettier, build pass.

🤖 Generated with Claude Code

…irst, then remove them from the address bar

The gateway now sends /sign-in/reset/confirm#token=… and /oauth/callback#token=…
(the fragment never reaches a server, so no access log holds the token).
Links sent before (?token=…) still work. The reset token goes to the API
only in the confirm POST body. Gateway task file:
docs/tasks/link-tokens-in-fragment.md (branch fix/link-tokens-in-fragment).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas
Domantas merged commit 6a1e13d into main Oct 12, 2026
2 checks passed
@Domantas
Domantas deleted the fix/link-tokens-in-fragment branch October 12, 2026 09:59
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