TokenResponse

@Serializable(with = TokenResponse.Serializer::class)
data class TokenResponse(val accessToken: String, val refreshToken: String? = null, val tokenType: String, val expiresIn: Long? = null, val scope: Set<Scope>? = null)

Constructors

Link copied to clipboard
constructor(accessToken: String, refreshToken: String? = null, tokenType: String, expiresIn: Long? = null, scope: Set<Scope>? = null)

Types

Link copied to clipboard
object Serializer : JsonTransformingSerializer<TokenResponse>

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 = "scope")
val scope: Set<Scope>?
Link copied to clipboard
@SerialName(value = "token_type")
val tokenType: String