Skip to content

Interface: GuardCallOptions ​

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

The call a guard runs in, as onUnauthenticated / onForbidden and resolve get it.

Extended by ​

Properties ​

PropertyTypeDescriptionDefined in
ctxanyThe procedure's context (after the middlewares that ran before the guard).packages/trpc/src/guards.ts:42
pathstringThe procedure's path, such as post.byId.packages/trpc/src/guards.ts:44
type"query" | "mutation" | "subscription"-packages/trpc/src/guards.ts:45

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