Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

auth-bug-repro

node v10.24.1
version: 2.0.0
endpointsharetweet
// 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)); });
Loading…

no comments

    sign in to comment