Token

class Token(    val tokenType: String,     val expiresIn: Int,     val accessToken: String,     val scope: String?,     val refreshToken: String?,     val idToken: String?,     val deviceSecret: String?,     val issuedTokenType: String?)

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
fun Token(    tokenType: String,     expiresIn: Int,     accessToken: String,     scope: String?,     refreshToken: String?,     idToken: String?,     deviceSecret: String?,     issuedTokenType: String?)

Functions

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

Properties

Link copied to clipboard
val accessToken: String

The access token.

Link copied to clipboard
val deviceSecret: String?

The device secret, if requested.

Link copied to clipboard
val expiresIn: Int

The expiration duration in seconds for this token.

Link copied to clipboard
val idToken: String?

The ID token, if requested.

Link copied to clipboard
val issuedTokenType: String?

The issued token type, if returned.

Link copied to clipboard
val refreshToken: String?

The refresh token, if requested.

Link copied to clipboard
val scope: String?

The scopes granted when this token was minted.

Link copied to clipboard
val tokenType: String

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