DeviceAuthorizationResponse

@Serializable
data class DeviceAuthorizationResponse(val deviceCode: String, val userCode: String, val verificationUri: String, val verificationUriComplete: String? = null, val expiresIn: Int, val interval: Int = 5)

Data class representing the RFC 8628 device authorization response.

Constructors

Link copied to clipboard
constructor(deviceCode: String, userCode: String, verificationUri: String, verificationUriComplete: String? = null, expiresIn: Int, interval: Int = 5)

Properties

Link copied to clipboard
@SerialName(value = "device_code")
val deviceCode: String

The device verification code.

Link copied to clipboard
@SerialName(value = "expires_in")
val expiresIn: Int

The lifetime in seconds of the device code and user code.

Link copied to clipboard
@SerialName(value = "interval")
val interval: Int = 5

The minimum amount of time in seconds that the client should wait between polling requests.

Link copied to clipboard
@SerialName(value = "user_code")
val userCode: String

The end-user verification code.

Link copied to clipboard
@SerialName(value = "verification_uri")
val verificationUri: String

The end-user verification URI.

Link copied to clipboard
@SerialName(value = "verification_uri_complete")
val verificationUriComplete: String? = null

The end-user verification URI that includes the user code (optional).