OAuth2Token

@Serializable
class OAuth2Token : Serializable

This class keeps all relevant OAuth token information.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "access_token")
val accessToken: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "expires_in")
val expiry: Int
Link copied to clipboard
@SerialName(value = "refresh_token")
val refreshToken: String?
Link copied to clipboard
@SerialName(value = "scope")
val scope: String?
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "token_type")
val type: String

Functions

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

Tokens are considered to be equal if their access code is the same; all other properties are irrelevant for comparison.

Link copied to clipboard
open override fun hashCode(): Int

The hash code depends only on the access token so that if this object is equal to another OAuth2Token, their hashes will also be equal.

Link copied to clipboard
open override fun toString(): String