MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isAuthMessage

Function isAuthMessage

packages/plugins/graphql/src/sdk/plugin.ts:117–121  ·  view source on GitHub ↗
(message: string | undefined)

Source from the content-addressed store, hash-verified

115 : detail;
116
117const isAuthMessage = (message: string | undefined): boolean =>
118 message !== undefined &&
119 /authoriz|authenticat|forbidden|permission|credential|api.?key|access denied|access token|invalid token|token expired|logged in|sign in/i.test(
120 message,
121 );
122
123/** Upstream error text can echo the request back (URLs with query params,
124 * auth headers), so scrub every credential value out of anything that leaves

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected