// attempted repro of https://github.com/ordercloud-api/OrderCloud-JavaScript-SDK/issues/42
const OrderCloud = require("ordercloud-javascript-sdk@3.5.7")
var defaultClient = OrderCloud.Sdk.instance;
var username = 'badusername';
var password = 'badpassword';
var clientID = 'bad-client-id';
var scope = ['FullAccess'];
// set up and force an auth-error to test that response has invalid character
return OrderCloud.Auth.Login(username, password, clientID, scope)
.catch(error => {
console.log(error.message);
console.log(JSON.stringify(error));
});