Commit 1687d04
committed
fix: Add leeway to JWT token verification
Using this leeway, the `now` parameter is not needed anymore, as the
sub-1 second is calculated into the leeway.
From the documentation, the leeway is:
"Implementers MAY provide for some small leeway, usually no more than
a few minutes, to account for clock skew"1 parent 6c0f7a6 commit 1687d04
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
269 | | - | |
| 268 | + | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
| |||
0 commit comments