Skip to content

Interface: GuardContext ​

Defined in: packages/trpc/src/guards.ts:33

Details about a failed check, passed to onUnauthenticated / onForbidden.

Properties ​

PropertyTypeDescriptionDefined in
kindRequirementKind-packages/trpc/src/guards.ts:34
requirementsstring[][]Groups of names: every group must pass, a group passes when ANY of its names matches.packages/trpc/src/guards.ts:36

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