MCPcopy
hub / github.com/hapijs/hapi / processAuthGeneric

Function processAuthGeneric

test/types/index.ts:324–329  ·  view source on GitHub ↗
(req: Request<Refs>)

Source from the content-addressed store, hash-verified

322
323// Generic function should see augmented credentials from ReqRefDefaults
324export 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
332export function processAuthConcrete(req: Request): void {

Callers 1

callWithSpecificRefsFunction · 0.85

Calls 1

typeMethod · 0.65

Tested by

no test coverage detected