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