Skip to content

Commit

Permalink
fix: send now as unix timestamp in seconds instead of difference
Browse files Browse the repository at this point in the history
  • Loading branch information
copperwall committed Sep 14, 2020
1 parent 516c839 commit 8f66a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-app-authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function getAppAuthentication({
const appAuthentication = await githubAppJwt({
id,
privateKey,
now: timeDifference,
now: timeDifference && Date.now() / 1000 + timeDifference,
});

return {
Expand Down

0 comments on commit 8f66a4b

Please sign in to comment.