diff --git a/codex-rs/core/src/auth.rs b/codex-rs/core/src/auth.rs index 1f82caafd0..59e5f868e1 100644 --- a/codex-rs/core/src/auth.rs +++ b/codex-rs/core/src/auth.rs @@ -1598,12 +1598,7 @@ async fn load_stored_refresh_token_if_identity_matches( return Ok(None); }; - if !tokens - .id_token - .chatgpt_account_id - .as_deref() - .is_some_and(|account_id| account_id == expected_account_id) - { + if tokens.id_token.chatgpt_account_id.as_deref() != Some(expected_account_id) { return Ok(None); }