We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dd4937 commit 2227b4fCopy full SHA for 2227b4f
1 file changed
packages/app-store/googlecalendar/lib/CalendarAuth.ts
@@ -29,7 +29,14 @@ const log = logger.getSubLogger({ prefix: ["app-store/googlecalendar/lib/Calenda
29
30
class MyGoogleOAuth2Client extends OAuth2Client {
31
constructor(client_id: string, client_secret: string, redirect_uri: string) {
32
- super(client_id, client_secret, redirect_uri);
+ super({
33
+ clientId: client_id,
34
+ clientSecret: client_secret,
35
+ redirectUri: redirect_uri,
36
+ // default: 5 * 60 * 1000, 5 minutes
37
+ // tho, fn will never run in excess of 60 seconds
38
+ eagerRefreshThresholdMillis: 60000,
39
+ });
40
}
41
42
isTokenExpiring() {
0 commit comments