Skip to content

basalt / auth/src / scopesSatisfy

Function: scopesSatisfy() ​

> scopesSatisfy(granted, required): boolean

Defined in: auth/src/apikeys.ts:38

True when granted covers required (an exact match or the * wildcard).

Parameters ​

granted ​

readonly string[]

required ​

readonly string[]

Returns ​

boolean

Released under the MIT License.