@schibsted/account-sdk-browser 5.0.1-beta.6 → 5.0.1-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/index.js CHANGED
@@ -1624,7 +1624,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1624
1624
  _context2.next = 4;
1625
1625
  return _this2.callbackBeforeRedirect();
1626
1626
  case 4:
1627
- return _context2.abrupt("return", _this2.window.location.href = _this2._sessionService.makeUrl(sessionData.redirectURL, {
1627
+ return _context2.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL, {
1628
1628
  tabId: _this2._getTabId()
1629
1629
  }));
1630
1630
  case 5:
@@ -1783,6 +1783,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1783
1783
  this._hasSessionInProgress = _getSession().then(function (sessionData) {
1784
1784
  _this2._hasSessionInProgress = false;
1785
1785
  _this2._unblockSessionCallByTab();
1786
+ if (Object(_validate_js__WEBPACK_IMPORTED_MODULE_55__["isUrl"])(sessionData)) {
1787
+ return _this2.window.location.href = sessionData;
1788
+ }
1786
1789
  return sessionData;
1787
1790
  }, function (err) {
1788
1791
  _this2.emit('error', err);
@@ -12143,7 +12146,7 @@ __webpack_require__.r(__webpack_exports__);
12143
12146
 
12144
12147
 
12145
12148
 
12146
- var version = '5.0.1-beta.6';
12149
+ var version = '5.0.1-beta.7';
12147
12150
  /* harmony default export */ __webpack_exports__["default"] = (version);
12148
12151
 
12149
12152
  /***/ }),