OAuth2

data class OAuth2 : OAuthAccessTokenResponse

OAuth2 access token acquired from the server

Constructors

<init>

OAuth2(
    accessToken: String,
    tokenType: String,
    expiresIn: Long,
    refreshToken: String?,
    extraParameters: Parameters = Parameters.Empty)

OAuth2 access token acquired from the server

Properties

accessToken

val accessToken: String

access token from server

expiresIn

val expiresIn: Long

token expiration timestamp

extraParameters

val extraParameters: Parameters

contains additional parameters provided by the server

refreshToken

val refreshToken: String?

to be used to refresh access token after expiration

tokenType

val tokenType: String

OAuth2 token type (usually Bearer)