mirror of
https://github.com/openai/codex.git
synced 2026-10-29 19:08:43 +00:00
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
This commit is contained in:
@@ -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<Server>,
|
||||
|
||||
Reference in New Issue
Block a user