@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/identity.js CHANGED
@@ -1618,7 +1618,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1618
1618
  _context2.next = 4;
1619
1619
  return _this2.callbackBeforeRedirect();
1620
1620
  case 4:
1621
- return _context2.abrupt("return", _this2.window.location.href = _this2._sessionService.makeUrl(sessionData.redirectURL, {
1621
+ return _context2.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL, {
1622
1622
  tabId: _this2._getTabId()
1623
1623
  }));
1624
1624
  case 5:
@@ -1777,6 +1777,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1777
1777
  this._hasSessionInProgress = _getSession().then(function (sessionData) {
1778
1778
  _this2._hasSessionInProgress = false;
1779
1779
  _this2._unblockSessionCallByTab();
1780
+ if (Object(_validate_js__WEBPACK_IMPORTED_MODULE_55__["isUrl"])(sessionData)) {
1781
+ return _this2.window.location.href = sessionData;
1782
+ }
1780
1783
  return sessionData;
1781
1784
  }, function (err) {
1782
1785
  _this2.emit('error', err);
@@ -12137,7 +12140,7 @@ __webpack_require__.r(__webpack_exports__);
12137
12140
 
12138
12141
 
12139
12142
 
12140
- var version = '5.0.1-beta.6';
12143
+ var version = '5.0.1-beta.7';
12141
12144
  /* harmony default export */ __webpack_exports__["default"] = (version);
12142
12145
 
12143
12146
  /***/ })