akeyless-client-commons 1.1.17-test.4 → 1.1.17-test.6

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.
@@ -980,10 +980,14 @@ var useSocketSubscription = function(configs, label, settings) {
980
980
  }).join(", ")));
981
981
  }
982
982
  } else {
983
- socketServiceInstance.getSocketInstance();
984
- if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
985
- console.log("==> ".concat(label || "Cache snapshots", " started... "));
986
- }
983
+ var _auth_currentUser;
984
+ auth === null || auth === void 0 ? void 0 : (_auth_currentUser = auth.currentUser) === null || _auth_currentUser === void 0 ? void 0 : _auth_currentUser.getIdToken().then(function(token) {
985
+ socketServiceInstance.setAuthToken(token);
986
+ socketServiceInstance.getSocketInstance();
987
+ if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
988
+ console.log("==> ".concat(label || "Cache snapshots", " started... "));
989
+ }
990
+ });
987
991
  }
988
992
  var uiOnConnect = function() {
989
993
  setSocketConnected(true);
@@ -886,10 +886,14 @@ var useSocketSubscription = function(configs, label, settings) {
886
886
  }).join(", ")));
887
887
  }
888
888
  } else {
889
- socketServiceInstance.getSocketInstance();
890
- if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
891
- console.log("==> ".concat(label || "Cache snapshots", " started... "));
892
- }
889
+ var _auth_currentUser;
890
+ auth === null || auth === void 0 ? void 0 : (_auth_currentUser = auth.currentUser) === null || _auth_currentUser === void 0 ? void 0 : _auth_currentUser.getIdToken().then(function(token) {
891
+ socketServiceInstance.setAuthToken(token);
892
+ socketServiceInstance.getSocketInstance();
893
+ if (!(settings === null || settings === void 0 ? void 0 : settings.disableLogs) && configs.length > 0) {
894
+ console.log("==> ".concat(label || "Cache snapshots", " started... "));
895
+ }
896
+ });
893
897
  }
894
898
  var uiOnConnect = function() {
895
899
  setSocketConnected(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.17-test.4",
3
+ "version": "1.1.17-test.6",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",