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

Function clear_code_verifier

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

Clear the stored code verifier.

(mcp_name: &str)

Source from the content-addressed store, hash-verified

150
151/// Clear the stored code verifier.
152pub async fn clear_code_verifier(mcp_name: &str) -> Result<(), std::io::Error> {
153 if let Some(mut entry) = get(mcp_name).await {
154 entry.code_verifier = None;
155 set(mcp_name, entry, None).await?;
156 }
157 Ok(())
158}
159/// Store the OAuth state parameter.
160pub async fn update_oauth_state(mcp_name: &str, state: &str) -> Result<(), std::io::Error> {
161 let mut entry = get(mcp_name).await.unwrap_or_default();

Callers 1

finish_authMethod · 0.85

Calls 2

setFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected