Skip to content

Commit f4062eb

Browse files
joocursoragent
andcommitted
fix(auth): set OAuth login wait timeout to 3 minutes
Align core and Electron login waits after the temporary 20s test value. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4b9e751 commit f4062eb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/internal/buildinfo/buildinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "strings"
44

55
// Set at link time via -ldflags (see .goreleaser.yaml).
66
var (
7-
Version = "dev0.2.42"
7+
Version = "dev0.2.43"
88
Commit = "none"
99
Date = "unknown"
1010
)

core/internal/subscriptionauth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const (
4949
codexScope = "openid profile email offline_access"
5050
codexAuthClaim = "https://api.openai.com/auth"
5151

52-
loginTimeout = 20 * time.Second
52+
loginTimeout = 3 * time.Minute
5353
tokenExchangeTimeout = 45 * time.Second
5454
)
5555

electron/clovapi-desktop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { runClovapiArgsAsync, runClovapiLongAsync, cancelClovapiLongRun } = requi
22
const { spawn } = require("node:child_process");
33

44
const AUTH_PROVIDERS = new Set(["claude-code", "codex"]);
5-
const AUTH_LOGIN_TIMEOUT = 20 * 1000;
5+
const AUTH_LOGIN_TIMEOUT = 3 * 60 * 1000;
66
// Must match subscriptionauth.AuthorizeURLLinePrefix in the Go core.
77
const AUTHORIZE_URL_PREFIX = "clovapi-authorize-url: ";
88

0 commit comments

Comments
 (0)