Appearance
zero-auth API Documentation v1.6.0
zero-auth API Documentation / AuthUser
Interface: AuthUser
Defined in: packages/zero-auth/src/types/auth.ts:292
The decoded user object attached to req.user after middleware runs.
Extends
Indexable
[
key:string]:unknown
Any additional custom claims.
Properties
email?
optionalemail?:string
Defined in: packages/zero-auth/src/types/auth.ts:268
User email (optional).
Inherited from
exp?
optionalexp?:number
Defined in: packages/zero-auth/src/types/auth.ts:296
Token expiration timestamp (seconds since epoch).
iat?
optionaliat?:number
Defined in: packages/zero-auth/src/types/auth.ts:294
Token issued-at timestamp (seconds since epoch).
id
id:
string
Defined in: packages/zero-auth/src/types/auth.ts:266
Unique user identifier (required).
Inherited from
jti?
optionaljti?:string
Defined in: packages/zero-auth/src/types/auth.ts:298
Token ID (jti) if present
permissions?
optionalpermissions?:string[]
Defined in: packages/zero-auth/src/types/auth.ts:272
Fine-grained permission strings.
Inherited from
role?
optionalrole?:string
Defined in: packages/zero-auth/src/types/auth.ts:270
Primary user role for RBAC.