OAuthToken

@Serializable
data class OAuthToken(val accessToken: String, val refreshToken: String? = null, val expiresIn: Long? = null, val tokenType: String? = null)

OAuth token returned by Yandex Device Flow.

Token persistence and refresh-token handling are the caller's responsibility.

Constructors

Link copied to clipboard
constructor(accessToken: String, refreshToken: String? = null, expiresIn: Long? = null, tokenType: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "access_token")
val accessToken: String
Link copied to clipboard
@SerialName(value = "expires_in")
val expiresIn: Long?
Link copied to clipboard
@SerialName(value = "refresh_token")
val refreshToken: String?
Link copied to clipboard
@SerialName(value = "token_type")
val tokenType: String?

Functions

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