@schibsted/account-sdk-browser 5.0.0-beta.1 → 5.0.0-beta.2

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/es5/global.js CHANGED
@@ -2068,9 +2068,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2068
2068
  key: "_getTabId",
2069
2069
  value: function _getTabId() {
2070
2070
  if (this._enableSessionCaching) {
2071
- var tabId = this.cache.get(TAB_ID_KEY);
2071
+ var tabId = this.sessionStorageCache.get(TAB_ID_KEY);
2072
2072
  if (!tabId) {
2073
- this.cache.set(TAB_ID_KEY, TAB_ID, TAB_ID_TTL);
2073
+ this.sessionStorageCache.set(TAB_ID_KEY, TAB_ID, TAB_ID_TTL);
2074
2074
  return TAB_ID;
2075
2075
  }
2076
2076
  return tabId;
@@ -2465,7 +2465,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2465
2465
  sessionData = null;
2466
2466
  _context.prev = 5;
2467
2467
  _context.next = 8;
2468
- return _this2._sessionService.get('/v2/session');
2468
+ return _this2._sessionService.get('/v2/session', {
2469
+ tabId: _this2._getTabId()
2470
+ });
2469
2471
  case 8:
2470
2472
  sessionData = _context.sent;
2471
2473
  _context.next = 15;
@@ -12031,7 +12033,7 @@ __webpack_require__.r(__webpack_exports__);
12031
12033
 
12032
12034
 
12033
12035
 
12034
- var version = '5.0.0-beta.1';
12036
+ var version = '5.0.0-beta.2';
12035
12037
  /* harmony default export */ __webpack_exports__["default"] = (version);
12036
12038
 
12037
12039
  /***/ }),