Skip to content

basalt / permissions/src / TemporaryGrant

Interface: TemporaryGrant ​

Defined in: permissions/src/delegation.ts:12

Temporary permissions and delegation on top of the standing role/permission grants. A temporary grant gives a user extra permissions until an expiry (break-glass access, a time-boxed task). A delegation lets one user act with a subset of another's permissions for a while — bounded, at check time, to what the delegator can actually do (so a delegation never grants more than the delegator has, and delegations don't chain).

Properties ​

expiresAt ​

> expiresAt: number

Defined in: permissions/src/delegation.ts:18

Epoch ms after which the grant is inert.


grantedBy? ​

> optional grantedBy?: string

Defined in: permissions/src/delegation.ts:19


id ​

> id: string

Defined in: permissions/src/delegation.ts:13


permissions ​

> permissions: string[]

Defined in: permissions/src/delegation.ts:15


reason? ​

> optional reason?: string

Defined in: permissions/src/delegation.ts:20


scope ​

> scope: string

Defined in: permissions/src/delegation.ts:16


userId ​

> userId: string

Defined in: permissions/src/delegation.ts:14

Released under the MIT License.