ckipfler
04/21/2021, 3:50 PMOAuth1.prototype._step3 = function (account, token, verifier, secret) {
var self = this;
return new Promise(function (resolve) {
var params = { account: account, token: token, verifier: verifier, secret: secret };
resolve(self._baseStep("" + (self.vm ? '' : account.replace('_','-')) + self.urls.step3, params));
});
};
net.js
, authorize: function(deploy, cb) {
oauth1
.issueToken(deploy.info.authID)
.then(({ account }) => {
deploy.info.account = account;
if (args.vm) {
deploy.info.hostname = args.vm.replace(/https?:\/\//, '');
} else {
const molecule = args.m ? `${args.m}.` : '';
deploy.info.hostname = `${account.replace('_','-')}.restlets.api.${molecule}<http://netsuite.com|netsuite.com>`;
}
log(
`Using token ${c.magenta(deploy.info.authID)} - Account ${c.magenta(
account
)}, run with --to to change it`
);
cb(null, deploy);
});
}
ckipfler
04/21/2021, 4:02 PMKearobi
04/21/2021, 6:17 PMckipfler
04/21/2021, 6:31 PMKearobi
04/21/2021, 6:36 PMckipfler
04/21/2021, 6:44 PMFlo Meilan
04/21/2021, 10:56 PM