Commit 71b0ecf
fix(login): accept ?secret= callback param and clarify errors
The web app redirects to the loopback callback with ?secret=<token>&state=<state>,
but the GET handler only looked for ?token=, so the token was silently dropped
and the user saw a misleading "State mismatch" error. Accept both names, and
distinguish a missing/empty payload from an actual state mismatch so future
failures are diagnosable from the message alone.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0e257d1 commit 71b0ecf
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
| |||
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
200 | | - | |
| 206 | + | |
| 207 | + | |
201 | 208 | | |
202 | | - | |
| 209 | + | |
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| |||
0 commit comments