rest-client-sdk 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/AbstractClient.ts +4 -1
package/dist/index.es.js
CHANGED
|
@@ -1349,7 +1349,7 @@ var AbstractClient = /*#__PURE__*/function () {
|
|
|
1349
1349
|
} else {
|
|
1350
1350
|
// if www-authenticate header is missing, try and read json response
|
|
1351
1351
|
return response.json().then(function (body) {
|
|
1352
|
-
if (_classPrivateFieldGet(_this5, _tokenStorage) && body.error === '
|
|
1352
|
+
if (_classPrivateFieldGet(_this5, _tokenStorage) && (body.error === 'invalid_scope' || body.error === 'access_denied')) {
|
|
1353
1353
|
return _this5._refreshTokenAndRefetch(input, requestParams);
|
|
1354
1354
|
}
|
|
1355
1355
|
|