Skip to content

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.

unknown

readonly string[]

boolean