@steroidsjs/core 2.2.87 → 2.2.88

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.
@@ -110,6 +110,7 @@ var JwtHttpComponent = /** @class */ (function (_super) {
110
110
  case 0:
111
111
  originalRequest = error.config;
112
112
  if (!(error.response.status === 401 && error.config && !error.config._isRetry)) return [3 /*break*/, 2];
113
+ this.removeAccessToken();
113
114
  store = this._components.store;
114
115
  return [4 /*yield*/, this.send(this.refreshTokenRequest.method, this.refreshTokenRequest.url, (_a = {},
115
116
  _a[this.refreshTokenKey] = this._refreshToken,
@@ -123,9 +124,7 @@ var JwtHttpComponent = /** @class */ (function (_super) {
123
124
  originalRequest.headers.Authorization = 'Bearer ' + accessToken;
124
125
  return [2 /*return*/, axiosInstance.request(originalRequest)];
125
126
  }
126
- else {
127
- store.dispatch(auth_1.logout());
128
- }
127
+ store.dispatch(auth_1.logout());
129
128
  _c.label = 2;
130
129
  case 2: throw error;
131
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.87",
3
+ "version": "2.2.88",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {