(store: SessionStore)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected