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

Method set

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

Source from the content-addressed store, hash-verified

92 }
93
94 pub async fn set(&self, provider_id: &str, auth: AuthInfo) {
95 {
96 let mut creds = self.credentials.write().await;
97 creds.insert(provider_id.to_string(), auth);
98 }
99 if let Err(error) = self.persist().await {
100 tracing::warn!(%error, provider_id, "failed to persist auth store");
101 }
102 }
103
104 pub async fn remove(&self, provider_id: &str) {
105 {

Callers 3

readExactFunction · 0.45

Calls 1

persistMethod · 0.45

Tested by

no test coverage detected