Skip to content

Protection

type Protection = HttpRouter.Middleware<{
error: Unauthorized | InsufficientScope | ValidationUnavailable
handles: never
layerError: AuthorizationConfigurationError
layerRequires: never
provides: Principal
requires: never
}>

Defined in: Authorization.ts:90

Middleware for the protected path and its descendants; other paths return 404.