Skip to content

Commit d3d262b

Browse files
committed
Move the timeout to a constant.
1 parent 0ec84ee commit d3d262b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/services/google.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import * as http from 'node:http';
1616
import * as url from 'node:url';
1717

1818
const DEFAULT_TIMEOUT_MS = 8000;
19+
const LOGIN_TIMEOUT_MS = 120000;
1920
const OAUTH_SCOPES = [
2021
// User info (for credential validation)
2122
'https://www.googleapis.com/auth/userinfo.profile',
@@ -570,7 +571,7 @@ class GoogleServiceSession extends BrowserFollowupServiceSession {
570571
const redirectUri = `http://localhost:${port.toString()}/oauth2callback`;
571572

572573
// Start the callback server
573-
const serverPromise = startOAuthCallbackServer(port, 120000);
574+
const serverPromise = startOAuthCallbackServer(port, LOGIN_TIMEOUT_MS);
574575

575576
// Build OAuth authorization URL
576577
const authUrl = new URL('https://accounts.google.com/o/oauth2/v2/auth');

0 commit comments

Comments
 (0)