@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/global.js CHANGED
@@ -2501,7 +2501,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2501
2501
  _context2.next = 4;
2502
2502
  return _this2.callbackBeforeRedirect();
2503
2503
  case 4:
2504
- return _context2.abrupt("return", _this2.window.location.href = _this2._sessionService.makeUrl(sessionData.redirectURL, {
2504
+ return _context2.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL, {
2505
2505
  tabId: _this2._getTabId()
2506
2506
  }));
2507
2507
  case 5:
@@ -2660,6 +2660,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2660
2660
  this._hasSessionInProgress = _getSession().then(function (sessionData) {
2661
2661
  _this2._hasSessionInProgress = false;
2662
2662
  _this2._unblockSessionCallByTab();
2663
+ if (Object(_validate_js__WEBPACK_IMPORTED_MODULE_55__["isUrl"])(sessionData)) {
2664
+ return _this2.window.location.href = sessionData;
2665
+ }
2663
2666
  return sessionData;
2664
2667
  }, function (err) {
2665
2668
  _this2.emit('error', err);
@@ -12171,7 +12174,7 @@ __webpack_require__.r(__webpack_exports__);
12171
12174
 
12172
12175
 
12173
12176
 
12174
- var version = '5.0.1-beta.6';
12177
+ var version = '5.0.1-beta.7';
12175
12178
  /* harmony default export */ __webpack_exports__["default"] = (version);
12176
12179
 
12177
12180
  /***/ }),