Update only the client info portion of an entry.
(
mcp_name: &str,
info: OAuthClientInfo,
server_url: Option<&str>,
)
| 129 | |
| 130 | /// Update only the client info portion of an entry. |
| 131 | pub async fn update_client_info( |
| 132 | mcp_name: &str, |
| 133 | info: OAuthClientInfo, |
| 134 | server_url: Option<&str>, |
| 135 | ) -> Result<(), std::io::Error> { |
| 136 | let mut entry = get(mcp_name).await.unwrap_or_default(); |
| 137 | entry.client_info = Some(info); |
| 138 | set(mcp_name, entry, server_url).await |
| 139 | } |
| 140 | |
| 141 | /// Store the PKCE code verifier. |
| 142 | pub async fn update_code_verifier( |