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

Function setAuthToken

packages/http-routes/src/auth.ts:16–18  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

14let requireAuthEnabled = false
15
16export function setAuthToken(token: string): void {
17 cachedToken = token
18}
19
20/**
21 * When enabled, /_web/* routes also require Bearer token (same as /api/*).

Callers 2

startHttpServerFunction · 0.90
auth.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected