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

Method constructor

src/server/web/auth/apikey-auth.ts:28–36  ·  view source on GitHub ↗
(store: SessionStore)

Source from the content-addressed store, hash-verified

26 private readonly adminUsers: ReadonlySet<string>;
27
28 constructor(store: SessionStore) {
29 this.store = store;
30 this.adminUsers = new Set(
31 (process.env.ADMIN_USERS ?? "")
32 .split(",")
33 .map((s) => s.trim())
34 .filter(Boolean),
35 );
36 }
37
38 authenticate(req: IncomingMessage): AuthUser | null {
39 const session = this.store.getFromRequest(req);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected