fix: adjust expiration time for token generation#87
fix: adjust expiration time for token generation#87Meldiron merged 2 commits intoutopia-php:mainfrom
Conversation
GitHub recently tightened JWT validation for GitHub App authentication as the `exp` claim must now be strictly less than 10 minutes from `iat`
Greptile SummaryThis PR fixes GitHub App JWT authentication by reducing the Key changes:
Confidence Score: 5/5Safe to merge — targeted, correct fix with no regressions introduced. The change is minimal and well-reasoned: it fixes a real compatibility breakage with GitHub's stricter JWT validation by reducing the expiry from 600 s to 540 s, extracts the value into a documented constant, and keeps the cache TTL correctly derived from that constant. No logic errors, security issues, or P1/P0 findings were identified. No files require special attention.
|
| Filename | Overview |
|---|---|
| src/VCS/Adapter/Git/GitHub.php | JWT expiry reduced from 10 min to 9 min via new GITHUB_APP_JWT_EXPIRY constant; cache TTL updated to match. Change is correct and well-documented. |
Reviews (2): Last reviewed commit: "fix: use GITHUB_APP_JWT_EXPIRY instead o..." | Re-trigger Greptile
GitHub recently tightened JWT validation for GitHub App authentication as the
expclaim must now be strictly less than 10 minutes fromiat