const domo = require('domo-sdk');
const domoClient = new domo.DomoClient('foo', 'bar');
domoClient.streams.createExecution('19').then((res) => {
// Never gets here
done();
}).catch((err) => {
// Never gets here either
done(err);
});
The logs will print the following:
GET: https://api.domo.com/oauth/token
OAuth token has likely expired. Renewing and attempting again
Renewing access token for scopes: "user data"
The following code produces an infinite loop:
The logs will print the following: GET: https://api.domo.com/oauth/token OAuth token has likely expired. Renewing and attempting again Renewing access token for scopes: "user data"