DeviceFlowClient

class DeviceFlowClient(metadata: OAuthServerMetadata, clientId: String, client: OkHttpClient)

Constructors

Link copied to clipboard
constructor(metadata: OAuthServerMetadata, clientId: String, client: OkHttpClient)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
suspend fun pollForToken(deviceCode: String, interval: Int, expiresAt: Long, onStateChange: (DeviceFlowState) -> Unit)
Link copied to clipboard
suspend fun requestDeviceCode(scopes: List<String> = listOf( "urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail", "offline_access" )): DeviceCodeResponse