OAuth2

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

OAuth2 access token acquired from the server

Constructors

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

Properties

Link copied to clipboard

access token from server

Link copied to clipboard

token expiration timestamp

Link copied to clipboard

contains additional parameters provided by the server

Link copied to clipboard

to be used to refresh access token after expiration

Link copied to clipboard

generated state used for the OAuth procedure

Link copied to clipboard

OAuth2 token type (usually Bearer)