MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / remove_auth

Method remove_auth

crates/opencode-mcp/src/oauth.rs:325–332  ·  view source on GitHub ↗

Remove all stored OAuth credentials for this server.

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

removeFunction · 0.85

Tested by

no test coverage detected