MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / invalidateCredentials

Method invalidateCredentials

src/mcp/auth.ts:155–162  ·  view source on GitHub ↗
(scope: "all" | "client" | "tokens" | "verifier" | "discovery")

Source from the content-addressed store, hash-verified

153 }
154
155 invalidateCredentials(scope: "all" | "client" | "tokens" | "verifier" | "discovery"): void {
156 if (scope === "all") this.store = {}
157 else if (scope === "client") delete this.store.clientInformation
158 else if (scope === "tokens") delete this.store.tokens
159 else if (scope === "verifier") delete this.store.codeVerifier
160 else if (scope === "discovery") delete this.store.discoveryState
161 writeAuthStore(this.serverName, this.store)
162 }
163
164 /** Open the user's browser to the authorization URL and capture it so the
165 * caller can surface it in the TUI (with copy + paste fallback). */

Callers

nothing calls this directly

Calls 1

writeAuthStoreFunction · 0.85

Tested by

no test coverage detected