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

Function delete_auth

crates/opencode-server/src/routes.rs:4506–4512  ·  view source on GitHub ↗
(
    State(state): State<Arc<ServerState>>,
    Path(id): Path<String>,
)

Source from the content-addressed store, hash-verified

4504}
4505
4506async fn delete_auth(
4507 State(state): State<Arc<ServerState>>,
4508 Path(id): Path<String>,
4509) -> Result<Json<serde_json::Value>> {
4510 state.auth_manager.remove(&id).await;
4511 Ok(Json(serde_json::json!({ "deleted": true })))
4512}
4513
4514fn parse_auth_info_payload(payload: serde_json::Value) -> Option<AuthInfo> {
4515 if let Ok(auth) = serde_json::from_value::<AuthInfo>(payload.clone()) {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected