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

Function get_oauth_state

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

Read the stored OAuth state.

(mcp_name: &str)

Source from the content-addressed store, hash-verified

165
166/// Read the stored OAuth state.
167pub async fn get_oauth_state(mcp_name: &str) -> Option<String> {
168 get(mcp_name).await.and_then(|e| e.oauth_state)
169}
170
171/// Clear the stored OAuth state.
172pub async fn clear_oauth_state(mcp_name: &str) -> Result<(), std::io::Error> {

Callers

nothing calls this directly

Calls 1

getFunction · 0.70

Tested by

no test coverage detected