@jsforce/jsforce-node
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -166,3 +166,3 @@ "use strict"; | ||
async authenticate(username, password) { | ||
if (!this.clientId || !this.clientSecret || !this.redirectUri) { | ||
if (!this.clientId || !this.clientSecret) { | ||
throw new Error('No valid OAuth2 client configuration set'); | ||
@@ -176,3 +176,2 @@ } | ||
client_secret: this.clientSecret, | ||
redirect_uri: this.redirectUri, | ||
}); | ||
@@ -179,0 +178,0 @@ return ret; |
@@ -59,3 +59,3 @@ "use strict"; | ||
const retryOpts = { | ||
statusCodes: options.retry?.statusCodes ?? [429, 500, 502, 503, 504], | ||
statusCodes: options.retry?.statusCodes ?? [420, 429, 500, 502, 503, 504], | ||
maxRetries: options.retry?.maxRetries ?? 5, | ||
@@ -62,0 +62,0 @@ minTimeout: options.retry?.minTimeout ?? 500, |
@@ -56,2 +56,5 @@ "use strict"; | ||
} | ||
catch (err) { | ||
throw new Error(`Unable to refresh session due to: ${err.message}`); | ||
} | ||
finally { | ||
@@ -58,0 +61,0 @@ this._refreshPromise = undefined; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "3.2.1"; | ||
declare const _default: "3.2.2"; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = '3.2.1'; | ||
exports.default = '3.2.2'; |
@@ -13,3 +13,3 @@ { | ||
"homepage": "http://github.com/jsforce/jsforce", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"repository": { | ||
@@ -16,0 +16,0 @@ "type": "git", |
2159891
61629