@dexteel/mesf-core 3.9.0 → 3.9.1
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/CHANGELOG.md +4 -0
- package/dist/index.esm.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -5980,7 +5980,11 @@ function isUnauthorizedError(error) {
|
|
|
5980
5980
|
var _a = error.response, status = _a.status; _a.statusText;
|
|
5981
5981
|
return status === 401;
|
|
5982
5982
|
}
|
|
5983
|
-
var axiosInstance = axios.create(
|
|
5983
|
+
var axiosInstance = axios.create({
|
|
5984
|
+
headers: {
|
|
5985
|
+
Authorization: "Bearer ".concat(getTokenFromLS())
|
|
5986
|
+
}
|
|
5987
|
+
});
|
|
5984
5988
|
var refreshingFunc;
|
|
5985
5989
|
axiosInstance.interceptors.response.use(function (res) { return res; }, function (error) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5986
5990
|
var originalConfig, token, _a, newToken, newRefreshToken, innerError_1;
|