Skip to content

Commit

Permalink
Merge pull request #189 from fdalcin/patch-1
Browse files Browse the repository at this point in the history
fix: the iat (issued at) value in the generated JWT by stripping off the microseconds
  • Loading branch information
wazelin authored Nov 7, 2024
2 parents 9fb8ee3 + f43dda3 commit ab569d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Security/Jwt/Builder/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit ab569d5

Please sign in to comment.