Get the auth entry only if it was stored for the same `server_url`.
(mcp_name: &str, server_url: &str)
| 88 | |
| 89 | /// Get the auth entry only if it was stored for the same `server_url`. |
| 90 | pub async fn get_for_url(mcp_name: &str, server_url: &str) -> Option<AuthEntry> { |
| 91 | let entry = get(mcp_name).await?; |
| 92 | match &entry.server_url { |
| 93 | Some(url) if url == server_url => Some(entry), |
| 94 | _ => None, |
| 95 | } |
| 96 | } |
| 97 | /// Persist an auth entry (optionally updating the server URL). |
| 98 | pub async fn set( |
| 99 | mcp_name: &str, |
no test coverage detected