MCPcopy Create free account
hub / github.com/codeaashu/claude-code / constructor

Method constructor

src/server/web/auth/token-auth.ts:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 private readonly adminUsers: ReadonlySet<string>;
19
20 constructor() {
21 this.token = process.env.AUTH_TOKEN;
22 this.adminUsers = new Set(
23 (process.env.ADMIN_USERS ?? "")
24 .split(",")
25 .map((s) => s.trim())
26 .filter(Boolean),
27 );
28 }
29
30 authenticate(req: IncomingMessage): AuthUser | null {
31 if (!this.token) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected