fix: Expiration time claim ('exp') must be a numeric value
This commit is contained in:
parent
126e5ff57a
commit
deec885fd9
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue