Commit 9a2db30
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 042eab5 commit 9a2db30
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 | | |
| |||
296 | 295 | | |
297 | 296 | | |
298 | 297 | | |
299 | | - | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
0 commit comments