diff --git a/GitForWindowsHelper/github-api-request-as-app.js b/GitForWindowsHelper/github-api-request-as-app.js index e9588af8..235f73ae 100644 --- a/GitForWindowsHelper/github-api-request-as-app.js +++ b/GitForWindowsHelper/github-api-request-as-app.js @@ -9,8 +9,8 @@ module.exports = async (context, requestMethod, requestPath, body) => { const payload = { // issued at time, 60 seconds in the past to allow for clock drift iat: now - 60, - // JWT expiration time (10 minute maximum) - exp: now + (10 * 60), + // JWT expiration time (10 minute maximum, use 9 to allow for clock drift) + exp: now + (9 * 60), // GitHub App's identifier iss: process.env['GITHUB_APP_ID'] }