(req: Request<Refs>)
| 322 | |
| 323 | // Generic function should see augmented credentials from ReqRefDefaults |
| 324 | export function processAuthGeneric<Refs extends ReqRef>(req: Request<Refs>): void { |
| 325 | |
| 326 | if (req.auth.isAuthenticated && req.auth.credentials.extra_id) { |
| 327 | check.type<string | undefined>(req.auth.credentials.extra_id); |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | // Non-generic Request should also see augmented credentials |
| 332 | export function processAuthConcrete(req: Request): void { |
no test coverage detected