@schibsted/account-sdk-browser 4.8.7-beta.6 → 4.8.7-beta.7

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
@@ -1153,13 +1153,10 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1153
1153
  _this.log = log;
1154
1154
  _this.callbackBeforeRedirect = callbackBeforeRedirect;
1155
1155
  _this._sessionDomain = sessionDomain;
1156
- if (_this._enableSessionCaching) {
1157
- var expiresIn = 1000 * 300;
1158
- _this.cache.set("sessionFlowOngoing", false, expiresIn);
1159
- }
1160
1156
 
1161
1157
  // Internal hack: set to false to always refresh from hassession
1162
1158
  _this._enableSessionCaching = true;
1159
+ _this.cache.delete("sessionFlowOngoing");
1163
1160
 
1164
1161
  // Old session
1165
1162
  _this._session = {};
@@ -1547,7 +1544,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1547
1544
  break;
1548
1545
  }
1549
1546
  if (_this2._enableSessionCaching) {
1550
- _expiresIn = 1000 * 300;
1547
+ _expiresIn = 1000 * (sessionData.expiresIn || 300);
1551
1548
  _this2.cache.set("sessionFlowOngoing", true, _expiresIn);
1552
1549
  }
1553
1550
  _context.next = 20;
@@ -11938,7 +11935,7 @@ __webpack_require__.r(__webpack_exports__);
11938
11935
 
11939
11936
 
11940
11937
 
11941
- var version = '4.8.7-beta.6';
11938
+ var version = '4.8.7-beta.7';
11942
11939
  /* harmony default export */ __webpack_exports__["default"] = (version);
11943
11940
 
11944
11941
  /***/ })