Interface: RequireRoleOptions
Defined in: packages/nuxt/src/server.ts:82
Options of requireRole(): { all } and { guard }.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
all? | boolean | Require ALL of the roles (instead of any). Default: false. | RoleRequirementOptions.all | packages/core/dist/index.d.ts:932 |
guard? | string | Check in this guard instead of the server's (subject.withScope({ guard })), like spatie's role:admin,api. Default: the guard of createRbacServer(). | RequireGuardOptions.guard | packages/nuxt/src/server.ts:75 |
