Scheduling infrastructure for absolutely everyone.
chore: Lower the threshold for eager token expiration (#20964)
Alex van Andel2227b4ff9185
diff --git a/packages/app-store/googlecalendar/lib/CalendarAuth.ts b/packages/app-store/googlecalendar/lib/CalendarAuth.tsindex dc03ccd543f..09406ebf6b0 100644--- a/packages/app-store/googlecalendar/lib/CalendarAuth.ts+++ b/packages/app-store/googlecalendar/lib/CalendarAuth.ts@@ -29,7 +29,14 @@ const log = logger.getSubLogger({ prefix: ["app-store/googlecalendar/lib/Calendaclass MyGoogleOAuth2Client extends OAuth2Client {constructor(client_id: string, client_secret: string, redirect_uri: string) {- super(client_id, client_secret, redirect_uri);+ super({+ clientId: client_id,+ clientSecret: client_secret,+ redirectUri: redirect_uri,+ // default: 5 * 60 * 1000, 5 minutes+ // tho, fn will never run in excess of 60 seconds+ eagerRefreshThresholdMillis: 60000,+ });}isTokenExpiring() {