Skip to content
0

katanakit-js / GrantAwareOptions

Interface: GrantAwareOptions ​

Defined in: src/core/services/grant.service.ts:39

Properties ​

PropertyTypeDescriptionDefined in
access?AccessServiceOverride the registry (tests, isolated instances).src/core/services/grant.service.ts:46
capabilitystring-src/core/services/grant.service.ts:42
now?DateInjected clock, so expiry is testable.src/core/services/grant.service.ts:48
resource{ id: string | number; type: string; }-src/core/services/grant.service.ts:41
resource.idstring | number-src/schemas/grant.schema.ts:15
resource.typestring-src/schemas/grant.schema.ts:14
subject{ [key: string]: unknown; id: string | number; roles: string[]; }-src/core/services/grant.service.ts:40
subject.idstring | number-src/schemas/access.schema.ts:105
subject.rolesstring[]-src/schemas/access.schema.ts:106
useGrants?GrantResolverOmit to deny every grant-scoped check. Global roles still resolve.src/core/services/grant.service.ts:44

Released under the MIT License.