MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / isProxyAuthError

Function isProxyAuthError

client/src/lib/hooks/useConnection.ts:383–388  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

381 };
382
383 const isProxyAuthError = (error: unknown): boolean => {
384 return (
385 error instanceof Error &&
386 error.message.includes("Authentication required. Use the session token")
387 );
388 };
389
390 const handleAuthError = async (error: unknown) => {
391 if (isConnectionAuthError(error)) {

Callers 1

connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected