Skip to content

Interface: RequireRoleOptions ​

Defined in: packages/nuxt/src/server.ts:82

Options of requireRole(): { all } and { guard }.

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
all?booleanRequire ALL of the roles (instead of any). Default: false.RoleRequirementOptions.allpackages/core/dist/index.d.ts:932
guard?stringCheck in this guard instead of the server's (subject.withScope({ guard })), like spatie's role:admin,api. Default: the guard of createRbacServer().RequireGuardOptions.guardpackages/nuxt/src/server.ts:75

Released under the MIT License. Inspired by spatie/laravel-permission.