Skip to main content

Token

A purpose-specific token issued to a user.

type Token implements Model {
active: Boolean
createdAt: Date
disabledDueToInactivity: Boolean
environmentIds: [Int]
exp: Int
expiresAt: Date
id: Int
lastUsedAt: Date
purpose: String
userId: Int
}

Fields​

Token.active ● Boolean scalar common​

Whether the token is active.

Token.createdAt ● Date scalar common​

When the token was created.

Token.disabledDueToInactivity ● Boolean scalar common​

Whether the token was disabled due to inactivity.

Token.environmentIds ● [Int] list scalar common​

The environment IDs associated with the token.

Token.exp ● Int scalar common​

The token expiration time as a Unix timestamp.

Token.expiresAt ● Date scalar common​

When the token expires.

Token.id ● Int scalar common​

The unique identifier for the token.

Token.lastUsedAt ● Date scalar common​

When the token was last used.

Token.purpose ● String scalar common​

The purpose of the token.

Token.userId ● Int scalar common​

The user ID that owns the token.

Interfaces​

Model interface common​

A model with an integer identifier.

Member Of​

CancelPendingEmailVerificationTokenPayload object ● Me object ● TokenList object ● User object