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

Method set_api_key

crates/opencode-server/src/oauth.rs:149–153  ·  view source on GitHub ↗
(&self, provider_id: &str, key: String)

Source from the content-addressed store, hash-verified

147 }
148
149 pub async fn set_api_key(&self, provider_id: &str, key: String) {
150 self.auth_manager
151 .set(provider_id, AuthInfo::Api { key })
152 .await;
153 }
154
155 pub async fn remove(&self, provider_id: &str) {
156 self.auth_manager.remove(provider_id).await;

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected