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

Function update_code_verifier

crates/opencode-mcp/src/auth.rs:142–149  ·  view source on GitHub ↗

Store the PKCE code verifier.

(
    mcp_name: &str,
    code_verifier: &str,
)

Source from the content-addressed store, hash-verified

140
141/// Store the PKCE code verifier.
142pub async fn update_code_verifier(
143 mcp_name: &str,
144 code_verifier: &str,
145) -> Result<(), std::io::Error> {
146 let mut entry = get(mcp_name).await.unwrap_or_default();
147 entry.code_verifier = Some(code_verifier.to_string());
148 set(mcp_name, entry, None).await
149}
150
151/// Clear the stored code verifier.
152pub async fn clear_code_verifier(mcp_name: &str) -> Result<(), std::io::Error> {

Callers 1

start_authMethod · 0.85

Calls 2

setFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected