Skip to main content

ScopeRules<Scopes, Grants>

ScopeRules<Scopes, Grants> = { [K in keyof Scopes]?: ScopeRule<Scopes[K]> } & { [r in LogicRule]?: ScopeRules<Scopes, Grants> } & object

Defines the structure of authorization scope rules. Combines individual scope rules with logical operators and granted permissions.

Type declaration

NameType

$granted?

Grants

Type Parameters

Type Parameter

Scopes

Grants extends string