Skip to content

ManagementAuthorize

type ManagementAuthorize<TContext> = (input) => boolean | Promise<boolean>;

Defined in: surface/types.ts:94

Authorizes one management read or mutation operation.

Return false to reject the request with 403. Throwing is left to the caller and will be handled as a normal oRPC error.

Type ParameterDefault type
TContextunknown
ParameterType
inputManagementAuthorizationInput<TContext>

boolean | Promise<boolean>