try {

        options = new communicationOptions.Auth().validate(originalOptions);

    } catch (err) {