--- a/src/IdTokenResponse.php
+++ b/src/IdTokenResponse.php
@@ -48,6 +48,10 @@
         AccessTokenEntityInterface $accessToken,
         IdentityEntityInterface $userEntity
     ): Builder {
+        // Fix para Nextcloud: usar timestamp entero en lugar de float
+        $currentTime = time();
+        $expirationTime = $currentTime + 3600; // 1 hour from now
+
         $dateTimeImmutableObject = new DateTimeImmutable();

         if ($this->currentRequestService) {
@@ -62,7 +66,7 @@
             ->permittedFor($accessToken->getClient()->getIdentifier())
             ->issuedBy($issuer)
             ->issuedAt($dateTimeImmutableObject)
-            ->expiresAt($dateTimeImmutableObject->add(new DateInterval('PT1H')))
+            ->expiresAt(new DateTimeImmutable("@$expirationTime"))
             ->relatedTo($userEntity->getIdentifier());
     }

