Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / scopeSetMatches

Function: scopeSetMatches()

ts
function scopeSetMatches(granted, required): boolean;

Defined in: packages/security/src/auth/scope.ts:127

Match a granted set against a required scope. Strings inside granted that fail to parse are skipped (they cannot grant anything).

Parameters

ParameterType
grantedreadonly ( | string | ParsedScope)[]
required| string | ParsedScope

Returns

boolean

Stable