@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/identity.js CHANGED
@@ -1185,9 +1185,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1185
1185
  key: "_getTabId",
1186
1186
  value: function _getTabId() {
1187
1187
  if (this._enableSessionCaching) {
1188
- var tabId = this.cache.get(TAB_ID_KEY);
1188
+ var tabId = this.sessionStorageCache.get(TAB_ID_KEY);
1189
1189
  if (!tabId) {
1190
- this.cache.set(TAB_ID_KEY, TAB_ID, TAB_ID_TTL);
1190
+ this.sessionStorageCache.set(TAB_ID_KEY, TAB_ID, TAB_ID_TTL);
1191
1191
  return TAB_ID;
1192
1192
  }
1193
1193
  return tabId;
@@ -1582,7 +1582,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1582
1582
  sessionData = null;
1583
1583
  _context.prev = 5;
1584
1584
  _context.next = 8;
1585
- return _this2._sessionService.get('/v2/session');
1585
+ return _this2._sessionService.get('/v2/session', {
1586
+ tabId: _this2._getTabId()
1587
+ });
1586
1588
  case 8:
1587
1589
  sessionData = _context.sent;
1588
1590
  _context.next = 15;
@@ -11997,7 +11999,7 @@ __webpack_require__.r(__webpack_exports__);
11997
11999
 
11998
12000
 
11999
12001
 
12000
- var version = '5.0.0-beta.1';
12002
+ var version = '5.0.0-beta.2';
12001
12003
  /* harmony default export */ __webpack_exports__["default"] = (version);
12002
12004
 
12003
12005
  /***/ })