Remove all stored OAuth credentials for this server.
(&self)
| 323 | |
| 324 | /// Remove all stored OAuth credentials for this server. |
| 325 | pub async fn remove_auth(&self) -> Result<(), OAuthError> { |
| 326 | auth::remove(&self.mcp_name) |
| 327 | .await |
| 328 | .map_err(OAuthError::Storage)?; |
| 329 | let mut pending = self.pending.write().await; |
| 330 | *pending = None; |
| 331 | Ok(()) |
| 332 | } |
| 333 | |
| 334 | /// Whether tokens exist on disk for this server + URL combination. |
| 335 | pub async fn has_stored_tokens(&self) -> bool { |