From deec885fd9899bdd0a350b68bca6c1c0be4b7e3d Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:08:22 +0100 Subject: [PATCH] fix: Expiration time claim ('exp') must be a numeric value --- bootstrap/helpers/github.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap/helpers/github.php b/bootstrap/helpers/github.php index c544ddcfc..be4ae65c5 100644 --- a/bootstrap/helpers/github.php +++ b/bootstrap/helpers/github.php @@ -51,6 +51,7 @@ function generateGithubToken(GithubApp $source, string $type) $algorithm = new Sha256; $tokenBuilder = (new Builder(new JoseEncoder, ChainedFormatter::default())); $now = CarbonImmutable::now()->setTimezone('UTC'); + $now = $now->setTime($now->format('H'), $now->format('i'), $now->format('s')); $jwt = $tokenBuilder ->issuedBy($source->app_id)