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

Function clear_oauth_state

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

Clear the stored OAuth state.

(mcp_name: &str)

Source from the content-addressed store, hash-verified

170
171/// Clear the stored OAuth state.
172pub async fn clear_oauth_state(mcp_name: &str) -> Result<(), std::io::Error> {
173 if let Some(mut entry) = get(mcp_name).await {
174 entry.oauth_state = None;
175 set(mcp_name, entry, None).await?;
176 }
177 Ok(())
178}
179
180/// Check whether stored tokens are expired.
181/// Returns `None` if no tokens exist, `Some(false)` if not expired (or no

Callers 1

finish_authMethod · 0.85

Calls 2

setFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected