@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/global.js CHANGED
@@ -2036,13 +2036,10 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2036
2036
  _this.log = log;
2037
2037
  _this.callbackBeforeRedirect = callbackBeforeRedirect;
2038
2038
  _this._sessionDomain = sessionDomain;
2039
- if (_this._enableSessionCaching) {
2040
- var expiresIn = 1000 * 300;
2041
- _this.cache.set("sessionFlowOngoing", false, expiresIn);
2042
- }
2043
2039
 
2044
2040
  // Internal hack: set to false to always refresh from hassession
2045
2041
  _this._enableSessionCaching = true;
2042
+ _this.cache.delete("sessionFlowOngoing");
2046
2043
 
2047
2044
  // Old session
2048
2045
  _this._session = {};
@@ -2430,7 +2427,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2430
2427
  break;
2431
2428
  }
2432
2429
  if (_this2._enableSessionCaching) {
2433
- _expiresIn = 1000 * 300;
2430
+ _expiresIn = 1000 * (sessionData.expiresIn || 300);
2434
2431
  _this2.cache.set("sessionFlowOngoing", true, _expiresIn);
2435
2432
  }
2436
2433
  _context.next = 20;
@@ -11972,7 +11969,7 @@ __webpack_require__.r(__webpack_exports__);
11972
11969
 
11973
11970
 
11974
11971
 
11975
- var version = '4.8.7-beta.6';
11972
+ var version = '4.8.7-beta.7';
11976
11973
  /* harmony default export */ __webpack_exports__["default"] = (version);
11977
11974
 
11978
11975
  /***/ }),