MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_oauth_manager

Method set_oauth_manager

crates/opencode-mcp/src/client.rs:168–171  ·  view source on GitHub ↗

Attach an OAuth manager for token-based auth on HTTP/SSE transports.

(&self, manager: Arc<McpOAuthManager>)

Source from the content-addressed store, hash-verified

166
167 /// Attach an OAuth manager for token-based auth on HTTP/SSE transports.
168 pub async fn set_oauth_manager(&self, manager: Arc<McpOAuthManager>) {
169 let mut guard = self.oauth_manager.write().await;
170 *guard = Some(manager);
171 }
172
173 // -- Status accessors ----------------------------------------------------
174

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected