Skip to content

Commit

Permalink
on 5 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
ybriker committed Jan 24, 2025
1 parent 90f027e commit 9ea6c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app-service/google-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class GoogleApi {
// Check if the access token is expiring in the next 5 minutes
const now = new Date();
const expiryDate = new Date(this.expiresAt);
const isExpired = expiryDate - now < 70 * 60 * 1000;
const isExpired = expiryDate - now < 5 * 60 * 1000;
if (!isExpired) {
return Promise.resolve();
}
Expand Down

0 comments on commit 9ea6c40

Please sign in to comment.