Skip to content

Instantly share code, notes, and snippets.

@Alqueraf
Last active August 26, 2020 16:42
Show Gist options
  • Save Alqueraf/fbaff93d2b5df932b5ae6c2eec5746c4 to your computer and use it in GitHub Desktop.
Save Alqueraf/fbaff93d2b5df932b5ae6c2eec5746c4 to your computer and use it in GitHub Desktop.
OAuth Access Token Response
@Serializable
data class OAuthAccessTokenResponse(
@SerialName("access_token") val accessToken: String,
@SerialName("refresh_token") val refreshToken: String? = null,
@SerialName("expires_in") val expiresInSeconds: Int? = null,
@SerialName("token_type") val tokenType: String? = null,
@SerialName("scope") val scopes: List<String>? = null,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment