Skip to content

Type Alias: RbacErrorBody ​

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

Defined in: packages/react-router/src/server.ts:60

The JSON body of a failed check: the same as the Express, Hono, Fastify and NestJS packages send.

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