From 94d919e31e64fdcd63b37682711389fe9c5fe92b Mon Sep 17 00:00:00 2001 From: smurching-oai Date: Wed, 28 Oct 2026 23:02:21 +0000 Subject: [PATCH] Extend the provider OAuth sign-in timeout to ten minutes (#57859) Give users more time to complete browser sign-in, including MFA, by increasing the OAuth callback timeout from three minutes to ten minutes. GitOrigin-RevId: 6a89bd3f7efb323a83ce317604faeef3a4fb2230 --- codex-rs/login/src/oauth_session_callback.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/login/src/oauth_session_callback.rs b/codex-rs/login/src/oauth_session_callback.rs index f0e16071b3..25f7675e84 100644 --- a/codex-rs/login/src/oauth_session_callback.rs +++ b/codex-rs/login/src/oauth_session_callback.rs @@ -12,7 +12,8 @@ use tokio::sync::oneshot; use tokio::time::timeout; use url::Url; -const BROWSER_TIMEOUT: Duration = Duration::from_secs(/*secs*/ 180); +// Give users enough time to complete browser sign-in, including MFA when required. +const BROWSER_TIMEOUT: Duration = Duration::from_secs(10 * 60); pub(super) struct CallbackListener { server: Arc,