Interface: AccessSubject
Defined in: src/types/index.ts:865
Structural subject for access checks. Decoupled from the persistence layer:
any object with an id and a role list can be checked (e.g. a Prisma
Account row, a JWT payload, or a test fixture).
Properties
id
id:
string|number
Defined in: src/types/index.ts:866
roles
roles:
AccessRole[]
Defined in: src/types/index.ts:867