deviceAuthorizationRequest

suspend fun deviceAuthorizationRequest(formParams: Map<String, String>): ERROR CLASS: Symbol not found for Result<com/okta/authfoundation/client/dto/DeviceAuthorizationInfo>

Performs a device authorization request per RFC 8628.

Posts formParams to the device authorization endpoint and returns a DeviceAuthorizationInfo containing the device code, user code, and verification URIs needed to complete the flow.

Return

Result.success with DeviceAuthorizationInfo, or Result.failure with:

Parameters

formParams

the form parameters (at minimum client_id and scope).