Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / validateScopeSet

Function: validateScopeSet()

ts
function validateScopeSet(scopes): readonly ScopeParseError[];

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

Validate that every entry in a granted set is a syntactically valid scope. Returns the parse errors collected during the walk, or an empty array if every entry parsed.

Parameters

ParameterType
scopesreadonly string[]

Returns

readonly ScopeParseError[]

Stable