Skip to content

Type Alias: RbacErrorBody ​

ts
type RbacErrorBody = 
  | {
  error: "UNAUTHENTICATED";
  message: string;
}
  | {
  error: "FORBIDDEN";
  message: string;
  reason: RequirementKind;
  required?: string[][];
};

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

The JSON body of a failed check — identical to @anievo-id/rbac-evolution-express.

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