Skip to content

ScopeUtil

ScopeUtil~parseScope(requestedScope) ⇒ undefined | Array.<string>

Utility to parse and validate a scope string. Uses isFormat from https://github.com/node-oauth/formats to validate scopes against nqchar format.

Kind: inner method of ScopeUtil
Throws:

  • InvalidScopeError if the type is not null, undefined or a string.

See: {https://github.com/node-oauth/formats}

ParamType
requestedScopestring | undefined | null