DeviceFlowStatus

sealed class DeviceFlowStatus

Sealed class representing the status of a device authorization flow (RFC 8628).

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard

The user explicitly denied the authorization request.

Link copied to clipboard

The device code expired before the user authorized the request.

Link copied to clipboard
data class Failure(val exception: Exception) : DeviceFlowStatus

An unrecoverable error occurred during the device flow.

Link copied to clipboard
data class Polling(val pollCount: Int, val pollInterval: Int, val nextPollAt: Long) : DeviceFlowStatus

The client is polling the token endpoint waiting for the user to authorize.

Link copied to clipboard

The device authorization request succeeded and the user code has been obtained.

Link copied to clipboard
data class Success(val user: User) : DeviceFlowStatus

The device flow completed successfully and an access token has been obtained.