diff --git a/src/ValidatesJWT.php b/src/ValidatesJWT.php index e111036..742c2c6 100644 --- a/src/ValidatesJWT.php +++ b/src/ValidatesJWT.php @@ -86,7 +86,7 @@ protected function validateTimestamps(array $payload) $checks = [ ['exp', $this->leeway /* */ , static::ERROR_TOKEN_EXPIRED, 'Expired'], ['iat', $this->maxAge - $this->leeway, static::ERROR_TOKEN_EXPIRED, 'Expired'], - ['nbf', $this->maxAge - $this->leeway, static::ERROR_TOKEN_NOT_NOW, 'Not now'], + ['nbf', -$this->leeway, static::ERROR_TOKEN_NOT_NOW, 'Not now'], ]; foreach ($checks as list($key, $offset, $code, $error)) {