Repository navigation
Commit f622f4a
fix(web): pair on same-tab token hash navigation (#1740)
## Problem
Navigating an existing `/pair` tab to `/pair#token=...` never submits the token and leaves it in the address bar.
## Change
Consume URL tokens on mount and `hashchange`, using the existing token-stripping helper and credential submission path.
Remove the obsolete mount-only token refs.
## Scope and approval
The host approved this focused fix and PR publication.
Closes #146.
## Verification
### Behavior
- [x] **Navigation:** same-tab token pairs
- [x] **Privacy:** token stripped from URL
- [x] **First load:** pairing still succeeds
- [x] **Tests:** 2 passed, 0 failed
### Checks
- [x] **Types:** web typecheck, exit 0
- [x] **Lint:** changed files, exit 0
- [x] **Build:** web production, exit 0
- [x] **Gate:** `vp run fork:ci`, exit 0
- [ ] **Live evidence:** host grounding pending
No servers or browsers launched by this worker.
Hosted pairing and native mobile are unchanged.
Implementation: Pi, gpt-6.1-sol; host: Claude Code, claude-opus-5-5.
## Fork trailers
Squashes:
- 8d3c37e fix(web): pair on same-tab token hash navigation (#1740) (#1740)
- 46cf384 fixup! fix(web): pair on same-tab token hash navigation (#1740) (#1740)
Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes1 parent 0313964 commit f622f4a
2 files changed
Lines changed: 72 additions & 11 deletions
File tree
- apps/web/src/components/auth
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
0 commit comments