diff --git a/Services/JWSProvider/LcobucciJWSProvider.php b/Services/JWSProvider/LcobucciJWSProvider.php index b3394743..fa7bfca3 100644 --- a/Services/JWSProvider/LcobucciJWSProvider.php +++ b/Services/JWSProvider/LcobucciJWSProvider.php @@ -103,7 +103,7 @@ public function create(array $payload, array $header = []) $jws = $jws->withHeader($k, $v); } - $now = time(); + $now = $this->clock->now()->getTimestamp(); $issuedAt = $payload['iat'] ?? $now; unset($payload['iat']);