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:
OAuth2ClientResult.Error.OidcEndpointsNotAvailableException if the device authorization endpoint is not available.
OAuth2ClientResult.Error.HttpResponseException if the server returns an error.
Other exceptions for network or parsing failures.
Parameters
formParams
the form parameters (at minimum client_id and scope).