Update only the tokens portion of an entry.
(
mcp_name: &str,
tokens: OAuthTokens,
server_url: Option<&str>,
)
| 118 | |
| 119 | /// Update only the tokens portion of an entry. |
| 120 | pub async fn update_tokens( |
| 121 | mcp_name: &str, |
| 122 | tokens: OAuthTokens, |
| 123 | server_url: Option<&str>, |
| 124 | ) -> Result<(), std::io::Error> { |
| 125 | let mut entry = get(mcp_name).await.unwrap_or_default(); |
| 126 | entry.tokens = Some(tokens); |
| 127 | set(mcp_name, entry, server_url).await |
| 128 | } |
| 129 | |
| 130 | /// Update only the client info portion of an entry. |
| 131 | pub async fn update_client_info( |
no test coverage detected