MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / has_auth

Method has_auth

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

Source from the content-addressed store, hash-verified

112 }
113
114 pub async fn has_auth(&self, provider_id: &str) -> bool {
115 let creds = self.credentials.read().await;
116 creds.contains_key(provider_id)
117 }
118
119 pub async fn get_api_key(&self, provider_id: &str) -> Option<String> {
120 let creds = self.credentials.read().await;

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected