Skip to content

Variable: requireRole ​

ts
const requireRole: Guard<string, RoleGuardOptions> = defaultGuards.requireRole;

Defined in: packages/sveltekit/src/server/guards.ts:285

Guards.requireRole with the default handlers (401 / 403 errors). Any name.

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