mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
fix: public load_auth() fn always called with include_env_var=true
This commit is contained in:
@@ -47,7 +47,7 @@ pub async fn run_login_with_api_key(
|
||||
pub async fn run_login_status(cli_config_overrides: CliConfigOverrides) -> ! {
|
||||
let config = load_config_or_exit(cli_config_overrides);
|
||||
|
||||
match load_auth(&config.codex_home, true) {
|
||||
match load_auth(&config.codex_home) {
|
||||
Ok(Some(auth)) => match auth.mode {
|
||||
AuthMode::ApiKey => {
|
||||
if let Some(api_key) = auth.api_key.as_deref() {
|
||||
|
||||
Reference in New Issue
Block a user