Token

@Serializable
class Token

Token information representing a user's access to a resource server, including access token, refresh token, and other related information.

Constructors

Link copied to clipboard
constructor(id: String, tokenType: String, expiresIn: Int, accessToken: String, scope: String?, refreshToken: String?, idToken: String?, deviceSecret: String?, issuedTokenType: String?, oidcConfiguration: OidcConfiguration)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Metadata(val id: String, val tags: Map<String, String>, val payloadData: JsonObject?)

Non-sensitive information about the Token to be used in storage.

Properties

Link copied to clipboard

The access token.

Link copied to clipboard

The device secret, if requested.

Link copied to clipboard

The expiration duration in seconds for this token.

Link copied to clipboard

The ID token, if requested.

Link copied to clipboard

The issued token type, if returned.

Link copied to clipboard

The configuration that was used to fetch this token.

Link copied to clipboard

The refresh token, if requested.

Link copied to clipboard

The scopes granted when this token was minted.

Link copied to clipboard

The string type of the token (e.g. Bearer).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int