Commit 4546050
feat(v2): report candidate shapes when no token authenticates
"No candidate authenticated" is not actionable. The failure path now describes
what was actually on the clipboard, by shape only, never by value:
candidate 1: length=50 <- token-shaped, but Cloudflare does not recognise it
candidate 2: length=64 <- 64 hex: this is an R2 SECRET ACCESS KEY, not an API token
A 64-hex string means the R2 token page was copied instead of the Workers one --
easily done, since both pages present "a long secret value to copy now" and both
are reached through the Cloudflare dashboard. Recognising that from the output
saves re-minting a token that was never the problem.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent a2bfc1c commit 4546050
1 file changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
93 | 116 | | |
94 | 117 | | |
95 | 118 | | |
| |||
0 commit comments