async function trySendRequest(request, next) {
    try {
        return [await next(request), undefined];
    }
    catch (e) {
        if ((0, restError_js_1.isRestError)(e) && e.response) {
            return [e.response, e];
        }
        else {
            throw e;
        }
    }
}
Re-authorize the request for CAE challenge.
The response containing the challenge is `options.response`.
If this method returns true, the underlying request will be sent once again.