Skip to content

basalt / permissions/src / isReservedScope

Function: isReservedScope() ​

> isReservedScope(id): boolean

Defined in: permissions/src/index.ts:132

True when id is a scope the Gate reserves for global grants. Tenant registries (and anything that mirrors grants under a tenant id, like teams) should refuse such ids.

Parameters ​

id ​

string

Returns ​

boolean

Released under the MIT License.