[app-server] Gate login issuer override constant (#22338)

Gate the debug-only login issuer override constant so release builds no
longer warn that it is unused.
This commit is contained in:
cassirer-openai
2026-05-13 03:43:18 -07:00
committed by GitHub
parent 9c5dfa7b1a
commit 842ac74b9c

View File

@@ -2,6 +2,8 @@ use super::*;
// Duration before a browser ChatGPT login attempt is abandoned.
const LOGIN_CHATGPT_TIMEOUT: Duration = Duration::from_secs(10 * 60);
// The override is intentionally available only in debug builds, matching the login path below.
#[cfg(debug_assertions)]
const LOGIN_ISSUER_OVERRIDE_ENV_VAR: &str = "CODEX_APP_SERVER_LOGIN_ISSUER";
enum ActiveLogin {