diff --git a/api/components/Tokens/Component.php b/api/components/Tokens/Component.php index 8ea8b33..9a9c2f2 100644 --- a/api/components/Tokens/Component.php +++ b/api/components/Tokens/Component.php @@ -62,7 +62,7 @@ class Component extends BaseComponent { */ public function create(array $payloads = [], array $headers = []): UnencryptedToken { $now = Carbon::now(); - $builder = (new Builder(new JoseEncoder(), ChainedFormatter::default()))->issuedAt($now->toDateTimeImmutable()); + $builder = (new Builder(new JoseEncoder(), ChainedFormatter::withUnixTimestampDates()))->issuedAt($now->toDateTimeImmutable()); if (isset($payloads['sub'])) { $builder = $builder->relatedTo($payloads['sub']); }