diff --git a/codex-rs/rmcp-client/src/oauth.rs b/codex-rs/rmcp-client/src/oauth.rs index bd6833fca4..af01cdfa88 100644 --- a/codex-rs/rmcp-client/src/oauth.rs +++ b/codex-rs/rmcp-client/src/oauth.rs @@ -366,9 +366,8 @@ fn load_oauth_tokens_from_file(server_name: &str, url: &str) -> Result bool { - match token.expires_in() { - Some(duration) => duration.as_secs() <= REFRESH_SKEW_SECS, - None => token.refresh_token().is_some(), - } -}