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

Method methods

crates/opencode-server/src/oauth.rs:24–40  ·  view source on GitHub ↗
(loader: &PluginLoader)

Source from the content-addressed store, hash-verified

22 }
23
24 pub async fn methods(loader: &PluginLoader) -> HashMap<String, Vec<AuthMethodInfo>> {
25 let bridges = loader.auth_bridges().await;
26 bridges
27 .iter()
28 .map(|(provider, bridge)| {
29 let methods = bridge
30 .methods()
31 .iter()
32 .map(|method| AuthMethodInfo {
33 method_type: method.method_type.clone(),
34 label: method.label.clone(),
35 })
36 .collect::<Vec<_>>();
37 (provider.clone(), methods)
38 })
39 .collect()
40 }
41
42 pub async fn authorize(
43 loader: &PluginLoader,

Callers 1

list_plugin_authFunction · 0.45

Calls 2

auth_bridgesMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected