We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ffaf9b + deda16c commit 803942aCopy full SHA for 803942a
src/ValidatesJWT.php
@@ -86,7 +86,7 @@ protected function validateTimestamps(array $payload)
86
$checks = [
87
['exp', $this->leeway /* */ , static::ERROR_TOKEN_EXPIRED, 'Expired'],
88
['iat', $this->maxAge - $this->leeway, static::ERROR_TOKEN_EXPIRED, 'Expired'],
89
- ['nbf', $this->maxAge - $this->leeway, static::ERROR_TOKEN_NOT_NOW, 'Not now'],
+ ['nbf', -$this->leeway, static::ERROR_TOKEN_NOT_NOW, 'Not now'],
90
];
91
92
foreach ($checks as list($key, $offset, $code, $error)) {
0 commit comments