Token

data class Token(val accessToken: String, val expiresIn: Int?, val refreshToken: String?, val refreshTokenExpiresIn: Int?, val tokenType: String, val idToken: String?, val scope: String?)

Data class representing a response to a successful token request.

Constructors

Link copied to clipboard
constructor(accessToken: String, expiresIn: Int?, refreshToken: String?, refreshTokenExpiresIn: Int?, tokenType: String, idToken: String?, scope: String?)

Properties

Link copied to clipboard

The newly-obtained access token

Link copied to clipboard

The lifetime of the access token, in seconds.

Link copied to clipboard

The user identity token, proving that the user has been authenticated.

Link copied to clipboard

The refresh token used to obtain a new access token when the original token expires.

Link copied to clipboard

The lifetime of the refresh token, in seconds.

Link copied to clipboard

The effective scope of the newly-obtained token.

Link copied to clipboard

The type of token.