Function: includesAccessTokenScope()
includesAccessTokenScope(
scopes,allowed):boolean
Return true when scopes contains any value from allowed.
Accepts the raw MASTRA_SCOPES_KEY array stamped on
RequestContext as well as iterables from getAccessTokenScopes.
Parameters
Section titled “Parameters”scopes
Section titled “scopes”unknown
allowed
Section titled “allowed”readonly string[]
Returns
Section titled “Returns”boolean