()
| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected