MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / unauthorized

Function unauthorized

packages/http-routes/src/errors.ts:51–53  ·  view source on GitHub ↗
(message = 'Invalid or missing token')

Source from the content-addressed store, hash-verified

49}
50
51export function unauthorized(message = 'Invalid or missing token'): ApiError {
52 return new ApiError(ApiErrorCode.UNAUTHORIZED, message)
53}
54
55export function sessionNotFound(id: string): ApiError {
56 return new ApiError(ApiErrorCode.SESSION_NOT_FOUND, `Session not found: ${id}`)

Callers 1

requireBearerTokenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected