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

Function hasStoredAuth

src/mcp/auth.ts:365–368  ·  view source on GitHub ↗
(serverName: string)

Source from the content-addressed store, hash-verified

363
364/** True if this server has persisted OAuth tokens (i.e. already authenticated). */
365export function hasStoredAuth(serverName: string): boolean {
366 const store = readAuthStore(serverName)
367 return Boolean(store && store.tokens && store.tokens.access_token)
368}
369
370/** Lets the caller intercept the interactive OAuth flow: surface the auth URL
371 * in the TUI and provide the authorization code (from the callback server or

Callers 2

connectOneMethod · 0.85
isAuthenticatedMethod · 0.85

Calls 1

readAuthStoreFunction · 0.85

Tested by

no test coverage detected