MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isAuthenticationError

Function isAuthenticationError

agents/e2e/base-deep.e2e.test.ts:65–72  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

63 }
64
65 const isAuthenticationError = (error: unknown) => {
66 if (!(error instanceof Error)) return false
67 const message = error.message.toLowerCase()
68 return (
69 message.includes('authentication failed') ||
70 message.includes('statuscode: 401')
71 )
72 }
73
74 const runOrSkipOnAuthFailure = async <T>(
75 label: string,

Callers 1

runOrSkipOnAuthFailureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected