Skip to content

Commit 0fcba7d

Browse files
authored
fix: adjust expiration time for token generation
GitHub recently tightened JWT validation for GitHub App authentication as the `exp` claim must now be strictly less than 10 minutes from `iat`
1 parent 3b2e8bb commit 0fcba7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/VCS/Adapter/Git/GitHub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ protected function generateAccessToken(string $privateKey, ?string $appId): void
600600
$appIdentifier = $appId;
601601

602602
$iat = time();
603-
$exp = $iat + 10 * 60;
603+
$exp = $iat + 9 * 60;
604604
$payload = [
605605
'iat' => $iat,
606606
'exp' => $exp,

0 commit comments

Comments
 (0)