@sap-ux/axios-extension 1.4.7 → 1.4.8

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.
@@ -63,7 +63,7 @@ function attachUaaAuthInterceptor(provider, service, refreshToken, refreshTokenU
63
63
  });
64
64
  const oneTimeInterceptorId = provider.interceptors.request.use((request) => __awaiter(this, void 0, void 0, function* () {
65
65
  var _b;
66
- token = token !== null && token !== void 0 ? token : (yield uaa.getAccessToken(refreshToken, refreshTokenUpdateCb));
66
+ token = token !== null && token !== void 0 ? token : (yield getToken());
67
67
  // add token as auth header
68
68
  request.headers = (_b = request.headers) !== null && _b !== void 0 ? _b : new axios_1.AxiosHeaders();
69
69
  request.headers.authorization = `bearer ${token}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/axios-extension",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.",
5
5
  "repository": {
6
6
  "type": "git",