Skip to main content

GetScopeRules()<Scopes, Grants, Root, Context, Args>

GetScopeRules<Scopes, Grants, Root, Context, Args> = (params) => boolean | ScopeRules<Scopes, Grants> | Promise<boolean | ScopeRules<Scopes, Grants>>

Function to get scope rules for pre-resolution authorization

Type Parameters

Type Parameter

Scopes extends ScopesShape

Grants extends string

Root

Context

Args

Parameters

ParameterType

params

MiddlewareParams<Root, Context, Args>

Returns

boolean | ScopeRules<Scopes, Grants> | Promise<boolean | ScopeRules<Scopes, Grants>>