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

Function unauthorized

apps/desktop/main/api/errors.ts:53–55  ·  view source on GitHub ↗
(message = 'Invalid or missing token')

Source from the content-addressed store, hash-verified

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

Callers 1

authHookFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected