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

Function get_auth_bridge

crates/opencode-server/src/routes.rs:4713–4721  ·  view source on GitHub ↗

Helper: look up the auth bridge for a provider name.

(provider: &str)

Source from the content-addressed store, hash-verified

4711
4712/// Helper: look up the auth bridge for a provider name.
4713async fn get_auth_bridge(provider: &str) -> Result<Arc<PluginAuthBridge>> {
4714 let loader = get_plugin_loader()
4715 .ok_or_else(|| ApiError::NotFound("no plugin loader initialized".into()))?;
4716
4717 loader
4718 .auth_bridge(provider)
4719 .await
4720 .ok_or_else(|| ApiError::NotFound(format!("no auth plugin for provider: {}", provider)))
4721}

Callers 4

plugin_auth_authorizeFunction · 0.85
plugin_auth_callbackFunction · 0.85
plugin_auth_loadFunction · 0.85
plugin_auth_fetchFunction · 0.85

Calls 2

get_plugin_loaderFunction · 0.85
auth_bridgeMethod · 0.80

Tested by

no test coverage detected