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

Function plugin_auth_load

crates/opencode-server/src/routes.rs:4653–4668  ·  view source on GitHub ↗
(
    _state: State<Arc<ServerState>>,
    Path(name): Path<String>,
)

Source from the content-addressed store, hash-verified

4651}
4652
4653async fn plugin_auth_load(
4654 _state: State<Arc<ServerState>>,
4655 Path(name): Path<String>,
4656) -> Result<Json<PluginAuthLoadResponse>> {
4657 let bridge = get_auth_bridge(&name).await?;
4658
4659 let result = bridge
4660 .load()
4661 .await
4662 .map_err(|e| ApiError::BadRequest(e.to_string()))?;
4663
4664 Ok(Json(PluginAuthLoadResponse {
4665 api_key: result.api_key,
4666 has_custom_fetch: result.has_custom_fetch,
4667 }))
4668}
4669
4670#[derive(Debug, Deserialize)]
4671struct PluginAuthFetchRequest {

Callers

nothing calls this directly

Calls 2

get_auth_bridgeFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected