Commit 85b964a
committed
fix: use URL-safe base64 encoding
Prior to this commit, this used standard encoding, which worked up until
relatively recently. Now, unfortunately, using standard encoding appears
to be unsupported:
```
error: unexpected status code from GitHub API (401): {
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest",
"status": "401"
}
```
This is, in a sense, not surprising because JWTs are typically base64
URL-safe encoded. It's surprising that this worked before, however.1 parent da7a0bc commit 85b964a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
0 commit comments