Interface: GuardHandlerOptions<R>
Defined in: packages/trpc/src/guards.ts:52
What onUnauthenticated / onForbidden get: the call, plus the subject the guard checked (null in onUnauthenticated). R is that subject's type: SubjectRbac with the names of T in createGuards<T>().
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
R | SubjectRbac |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
ctx | any | The procedure's context (after the middlewares that ran before the guard). | GuardCallOptions.ctx | packages/trpc/src/guards.ts:42 |
path | string | The procedure's path, such as post.byId. | GuardCallOptions.path | packages/trpc/src/guards.ts:44 |
rbac | R | null | - | - | packages/trpc/src/guards.ts:53 |
type | "query" | "mutation" | "subscription" | - | GuardCallOptions.type | packages/trpc/src/guards.ts:45 |
