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

Method auth_bridge

crates/opencode-plugin/src/subprocess/loader.rs:198–200  ·  view source on GitHub ↗

Get the auth bridge for a given provider ID, if any plugin provides it.

(&self, provider: &str)

Source from the content-addressed store, hash-verified

196
197 /// Get the auth bridge for a given provider ID, if any plugin provides it.
198 pub async fn auth_bridge(&self, provider: &str) -> Option<Arc<PluginAuthBridge>> {
199 self.auth_bridges.read().await.get(provider).cloned()
200 }
201
202 /// Get all registered auth bridges, keyed by provider ID.
203 pub async fn auth_bridges(&self) -> HashMap<String, Arc<PluginAuthBridge>> {

Callers 4

authorizeMethod · 0.80
callbackMethod · 0.80
oauth_callbackFunction · 0.80
get_auth_bridgeFunction · 0.80

Calls 2

readMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected