Commit 7f9ec4e
committed
fix(jwt): handle full Authorization: Bearer header line in decodeJwt
The page detected Authorization: Bearer input as JWT but decodeJwt only
stripped the Bearer scheme prefix, leaving the Authorization: field name
in the string — causing atob to throw on the first dot-segment. Strip the
header field name before the scheme prefix so the full header line round-trips
correctly.1 parent 325347b commit 7f9ec4e
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments