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

Function createAuthError

sdk/src/error-utils.ts:34–36  ·  view source on GitHub ↗
(message = 'Authentication failed')

Source from the content-addressed store, hash-verified

32 * Creates an authentication error (401)
33 */
34export function createAuthError(message = 'Authentication failed'): HttpError {
35 return createHttpError(message, 401)
36}
37
38/**
39 * Creates a forbidden error (403)

Callers 3

validateApiKeyFunction · 0.90
getUserInfoFromApiKeyFunction · 0.90

Calls 1

createHttpErrorFunction · 0.85

Tested by

no test coverage detected