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.js
CHANGED
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
} else {
|
|
1356
1356
|
// if www-authenticate header is missing, try and read json response
|
|
1357
1357
|
return response.json().then(function (body) {
|
|
1358
|
-
if (_classPrivateFieldGet(_this5, _tokenStorage) && body.error === '
|
|
1358
|
+
if (_classPrivateFieldGet(_this5, _tokenStorage) && (body.error === 'invalid_scope' || body.error === 'access_denied')) {
|
|
1359
1359
|
return _this5._refreshTokenAndRefetch(input, requestParams);
|
|
1360
1360
|
}
|
|
1361
1361
|
|