Skip to main content

Interface: JWTUser

Defined in: core/src/JWTUtils.ts:14

Describes user data that is encoded in the payload of a JWT token.

Properties​

elevated?​

optional elevated?: number

Defined in: core/src/JWTUtils.ts:23

The timestamp that the user was granted elevated privileges. A negative value indicates the user is unprivileged. Default value is -1.


roles​

roles: string[]

Defined in: core/src/JWTUtils.ts:28

The list of roles (by name) that the user is a member of and will inherit the permissions of.


scopes​

scopes: string[]

Defined in: core/src/JWTUtils.ts:33

The list of auth scopes that the user has been granted permission for.


uid​

uid: string

Defined in: core/src/JWTUtils.ts:18

The universally unique identifier of the user.


verified?​

optional verified?: boolean

Defined in: core/src/JWTUtils.ts:38

Indicates if the user's e-mail address has been verified.