@schibsted/account-sdk-browser 4.8.7-beta.5 → 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 +9 -6
- package/es5/global.js.map +1 -1
- package/es5/global.min.js +1 -1
- package/es5/global.min.js.map +1 -1
- package/es5/identity.js +9 -6
- package/es5/identity.js.map +1 -1
- package/es5/identity.min.js +1 -1
- package/es5/identity.min.js.map +1 -1
- package/es5/index.js +9 -6
- package/es5/index.js.map +1 -1
- package/es5/index.min.js +1 -1
- package/es5/index.min.js.map +1 -1
- package/es5/monetization.js +1 -1
- package/es5/monetization.js.map +1 -1
- package/es5/monetization.min.js +1 -1
- package/es5/monetization.min.js.map +1 -1
- package/package.json +1 -1
- package/src/identity.js +6 -2
- package/src/version.js +1 -1
package/es5/index.js
CHANGED
|
@@ -1159,10 +1159,10 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1159
1159
|
_this.log = log;
|
|
1160
1160
|
_this.callbackBeforeRedirect = callbackBeforeRedirect;
|
|
1161
1161
|
_this._sessionDomain = sessionDomain;
|
|
1162
|
-
_this.cache.set("sessionFlowOngoing", false);
|
|
1163
1162
|
|
|
1164
1163
|
// Internal hack: set to false to always refresh from hassession
|
|
1165
1164
|
_this._enableSessionCaching = true;
|
|
1165
|
+
_this.cache.delete("sessionFlowOngoing");
|
|
1166
1166
|
|
|
1167
1167
|
// Old session
|
|
1168
1168
|
_this._session = {};
|
|
@@ -1506,7 +1506,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1506
1506
|
};
|
|
1507
1507
|
var _getSession = /*#__PURE__*/function () {
|
|
1508
1508
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1509
|
-
var cachedSession, sessionData, expiresIn, _expiresIn;
|
|
1509
|
+
var cachedSession, sessionData, expiresIn, _expiresIn, _expiresIn2;
|
|
1510
1510
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1511
1511
|
while (1) switch (_context.prev = _context.next) {
|
|
1512
1512
|
case 0:
|
|
@@ -1549,15 +1549,18 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1549
1549
|
_context.next = 21;
|
|
1550
1550
|
break;
|
|
1551
1551
|
}
|
|
1552
|
-
_this2.
|
|
1552
|
+
if (_this2._enableSessionCaching) {
|
|
1553
|
+
_expiresIn = 1000 * (sessionData.expiresIn || 300);
|
|
1554
|
+
_this2.cache.set("sessionFlowOngoing", true, _expiresIn);
|
|
1555
|
+
}
|
|
1553
1556
|
_context.next = 20;
|
|
1554
1557
|
return _this2.callbackBeforeRedirect();
|
|
1555
1558
|
case 20:
|
|
1556
1559
|
return _context.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL));
|
|
1557
1560
|
case 21:
|
|
1558
1561
|
if (_this2._enableSessionCaching) {
|
|
1559
|
-
|
|
1560
|
-
_this2.cache.set(HAS_SESSION_CACHE_KEY, sessionData,
|
|
1562
|
+
_expiresIn2 = 1000 * (sessionData.expiresIn || 300);
|
|
1563
|
+
_this2.cache.set(HAS_SESSION_CACHE_KEY, sessionData, _expiresIn2);
|
|
1561
1564
|
}
|
|
1562
1565
|
case 22:
|
|
1563
1566
|
return _context.abrupt("return", _postProcess(sessionData));
|
|
@@ -11938,7 +11941,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11938
11941
|
|
|
11939
11942
|
|
|
11940
11943
|
|
|
11941
|
-
var version = '4.8.7-beta.
|
|
11944
|
+
var version = '4.8.7-beta.7';
|
|
11942
11945
|
/* harmony default export */ __webpack_exports__["default"] = (version);
|
|
11943
11946
|
|
|
11944
11947
|
/***/ }),
|