@xtandard/kit/authorization/roles
@xtandard/kit/authorization/roles — role-based authorization: a role →
actions policy (the product passes its DEFAULT_ROLE_POLICY) plus a
readonly switch.
import { … } from "@xtandard/kit/authorization/roles";Functions
Section titled “Functions”| Name | Summary |
|---|---|
rolesAuthorization |
Create a role-based AuthorizationProvider. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
RolesAuthorizationOptions |
Options for rolesAuthorization. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
RolePolicy |
A role policy: each role maps to an explicit action list or the "*" wildcard. |