@schibsted/account-sdk-browser 4.8.7-beta.5 → 4.8.7-beta.6
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 +12 -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 +12 -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 +12 -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 +9 -2
- package/src/version.js +1 -1
package/es5/identity.js
CHANGED
|
@@ -1153,7 +1153,10 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1153
1153
|
_this.log = log;
|
|
1154
1154
|
_this.callbackBeforeRedirect = callbackBeforeRedirect;
|
|
1155
1155
|
_this._sessionDomain = sessionDomain;
|
|
1156
|
-
_this.
|
|
1156
|
+
if (_this._enableSessionCaching) {
|
|
1157
|
+
var expiresIn = 1000 * 300;
|
|
1158
|
+
_this.cache.set("sessionFlowOngoing", false, expiresIn);
|
|
1159
|
+
}
|
|
1157
1160
|
|
|
1158
1161
|
// Internal hack: set to false to always refresh from hassession
|
|
1159
1162
|
_this._enableSessionCaching = true;
|
|
@@ -1500,7 +1503,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1500
1503
|
};
|
|
1501
1504
|
var _getSession = /*#__PURE__*/function () {
|
|
1502
1505
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1503
|
-
var cachedSession, sessionData, expiresIn, _expiresIn;
|
|
1506
|
+
var cachedSession, sessionData, expiresIn, _expiresIn, _expiresIn2;
|
|
1504
1507
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1505
1508
|
while (1) switch (_context.prev = _context.next) {
|
|
1506
1509
|
case 0:
|
|
@@ -1543,15 +1546,18 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1543
1546
|
_context.next = 21;
|
|
1544
1547
|
break;
|
|
1545
1548
|
}
|
|
1546
|
-
_this2.
|
|
1549
|
+
if (_this2._enableSessionCaching) {
|
|
1550
|
+
_expiresIn = 1000 * 300;
|
|
1551
|
+
_this2.cache.set("sessionFlowOngoing", true, _expiresIn);
|
|
1552
|
+
}
|
|
1547
1553
|
_context.next = 20;
|
|
1548
1554
|
return _this2.callbackBeforeRedirect();
|
|
1549
1555
|
case 20:
|
|
1550
1556
|
return _context.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL));
|
|
1551
1557
|
case 21:
|
|
1552
1558
|
if (_this2._enableSessionCaching) {
|
|
1553
|
-
|
|
1554
|
-
_this2.cache.set(HAS_SESSION_CACHE_KEY, sessionData,
|
|
1559
|
+
_expiresIn2 = 1000 * (sessionData.expiresIn || 300);
|
|
1560
|
+
_this2.cache.set(HAS_SESSION_CACHE_KEY, sessionData, _expiresIn2);
|
|
1555
1561
|
}
|
|
1556
1562
|
case 22:
|
|
1557
1563
|
return _context.abrupt("return", _postProcess(sessionData));
|
|
@@ -11932,7 +11938,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11932
11938
|
|
|
11933
11939
|
|
|
11934
11940
|
|
|
11935
|
-
var version = '4.8.7-beta.
|
|
11941
|
+
var version = '4.8.7-beta.6';
|
|
11936
11942
|
/* harmony default export */ __webpack_exports__["default"] = (version);
|
|
11937
11943
|
|
|
11938
11944
|
/***/ })
|