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

Method remove

crates/opencode-provider/src/auth.rs:104–112  ·  view source on GitHub ↗
(&self, provider_id: &str)

Source from the content-addressed store, hash-verified

102 }
103
104 pub async fn remove(&self, provider_id: &str) {
105 {
106 let mut creds = self.credentials.write().await;
107 creds.remove(provider_id);
108 }
109 if let Err(error) = self.persist().await {
110 tracing::warn!(%error, provider_id, "failed to persist auth store");
111 }
112 }
113
114 pub async fn has_auth(&self, provider_id: &str) -> bool {
115 let creds = self.credentials.read().await;

Callers 10

remap_provider_optionsFunction · 0.45
sanitize_geminiFunction · 0.45
into_chat_responseMethod · 0.45
build_request_bodyMethod · 0.45
chat_legacyMethod · 0.45
initMethod · 0.45
process_stream_chunkFunction · 0.45

Calls 1

persistMethod · 0.45

Tested by

no test coverage detected