OAuth2

data class OAuth2(accessToken: String, tokenType: String, expiresIn: Long, refreshToken: String?, extraParameters: Parameters) : OAuthAccessTokenResponse

OAuth2 access token acquired from the server

Constructors

Link copied to clipboard
fun OAuth2(accessToken: String, tokenType: String, expiresIn: Long, refreshToken: String?, extraParameters: Parameters = Parameters.Empty)

Properties

Link copied to clipboard
val accessToken: String

access token from server

Link copied to clipboard
val expiresIn: Long

token expiration timestamp

Link copied to clipboard
val extraParameters: Parameters

contains additional parameters provided by the server

Link copied to clipboard
val refreshToken: String?

to be used to refresh access token after expiration

Link copied to clipboard
val tokenType: String

OAuth2 token type (usually Bearer)