Skip to main content

TokenPayload

Defines the structure for JWT token payload

Properties

exp?

optional exp: number;

Token expiration timestamp


iat?

optional iat: number;

Token issued timestamp


role

role: UserRole;

User's role


userId

userId: string;

User's unique identifier