OAuthTokenData

@Serializable
data class OAuthTokenData(val accessToken: String, val expiresIn: Int, val tokenType: String, val scope: String? = null, val refreshToken: String? = null, val requestId: String? = null)

OAuth 令牌数据。

Constructors

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

Properties

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

Functions

Link copied to clipboard

将 OAuth 令牌数据转换为 TokenInfo.OAuth。