Skip to main content

AuthMiddlewareOptions<Grants, Result, Root, Context, Args>

Options for authorization middlewares

Type Parameters

Type Parameter

Grants extends string

Result

Root

Context

Args

Properties

PropertyTypeDescription

grants?

GetGrant<Grants, Result, Root, Context, Args>

Permissions to grant after successful authorization

onError?

ScopeErrorResolver

Custom error handler for this operation

skipDefaults?

boolean

Whether to skip default scopes for this operation