From f43dda3ab53e8cde308a522b980bebe5da924238 Mon Sep 17 00:00:00 2001 From: Felipe Dalcin Date: Thu, 27 Jun 2024 10:41:19 -0400 Subject: [PATCH] fix: set microsecond to 0 Signed-off-by: Felipe Dalcin --- src/Security/Jwt/Builder/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Jwt/Builder/Builder.php b/src/Security/Jwt/Builder/Builder.php index 140bcb9..e890572 100644 --- a/src/Security/Jwt/Builder/Builder.php +++ b/src/Security/Jwt/Builder/Builder.php @@ -61,7 +61,7 @@ public function __construct( public function build(array $headers, array $claims, KeyInterface $key): TokenInterface { try { - $now = Carbon::now(); + $now = Carbon::now()->setMicrosecond(0); $config = $this->factory->create($key); $builder = $config->builder();