Skip to content

Keep the pairing code out of the URL the server sees - #14

Merged
marcelorsdd merged 1 commit into
mainfrom
feat/pairing-code-fragment
Nov 15, 2026
Merged

marcelorsdd merged 1 commit into
mainfrom
feat/pairing-code-fragment

Conversation

@marcelorsdd

Copy link
Copy Markdown
Owner

The console's QR code linked to /link?code=ABCD2345, so the pairing code reached the server in the request line and could end up in logs or a referrer. It now links to /link#code=ABCD2345: browsers never send the fragment.

  • core: pairingLink builds #code=.
  • web: the link page reads the code from the fragment, falling back to the query for consoles still on v0.3.0; a scanned link may carry it in either, but only one code in total; after linking, both are cleared; signing in from the landing page keeps the fragment in the redirect.

Tests: core 42, web 75 (new cases for the fragment, the fallback, two codes, and clearing it after linking), ui; typecheck and ESLint clean.

@marcelorsdd
marcelorsdd merged commit 46056ac into main Nov 15, 2026
11 checks passed
@marcelorsdd
marcelorsdd deleted the feat/pairing-code-fragment branch November 15, 2026 18:21
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