Hi there,
When attempting to fetch a token using the sandbox environment, the lib throws an error:
const encodedStr = base64Encode(`${ebayAuthToken.clientId}:${ebayAuthToken.clientSecret}`);
^
TypeError: Cannot read property 'clientId' of undefined
Code I'm using w/ my sandbox creds:
const EbayAuthToken = require('ebay-oauth-nodejs-client');
const ebayAuthToken = new EbayAuthToken({
clientId: '',
clientSecret: '',
redirectUri: '',
});
(async () => {
const token = await ebayAuthToken.getApplicationToken('SANDBOX');
console.log(token);
})();
Hi there,
When attempting to fetch a token using the sandbox environment, the lib throws an error:
Code I'm using w/ my sandbox creds: