Skip to content
0

katanakit-js / AccessSubject

Type Alias: AccessSubject ​

ts
type AccessSubject = z.infer<typeof AccessSubjectSchema>;

Defined in: src/types/index.ts:979

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). Extra keys are preserved, so a subject can also carry the principal it was resolved from.

Released under the MIT License.