QNetworkReply::error() will return NoError even when there was an HTTP error response code. This change make sure that the error field of the json response is always checked for "authorization_pending" or "slow_down".
Don't start polling right away. Nobody's that fast on their phone to approve the device before the first poll request.
Two changes:
QNetworkReply::error()
will returnNoError
even when there was an HTTP error response code. This change make sure that the error field of the json response is always checked for "authorization_pending" or "slow_down".