Checks whether the authentication is supported by the server and handles the different POST request routes.
checkAuthentication(request, auth, version.needed = 1)
The needed request to be made (without
Whether authentication is requested in R.
The minimum version of the request. If it is
request: the request to send
auth: whether to still send an authenticated request.