@schibsted/account-sdk-browser 5.1.0 → 5.2.0

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
@@ -1588,7 +1588,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1588
1588
  sessionData = null;
1589
1589
  _context.prev = 5;
1590
1590
  _context.next = 8;
1591
- return _this2._sessionService.get('/v2/session', {
1591
+ return _this2._sessionService.get('v2/session', {
1592
1592
  tabId: _this2._getTabId()
1593
1593
  });
1594
1594
  case 8:
@@ -2023,7 +2023,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2023
2023
  case 0:
2024
2024
  _context10.prev = 0;
2025
2025
  _context10.next = 3;
2026
- return this._globalSessionService.get('/user-context');
2026
+ return this._globalSessionService.get('user-context');
2027
2027
  case 3:
2028
2028
  return _context10.abrupt("return", _context10.sent);
2029
2029
  case 6:
@@ -2061,6 +2061,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2061
2061
  * @param {string} [options.locale]
2062
2062
  * @param {boolean} [options.oneStepLogin=false]
2063
2063
  * @param {string} [options.prompt=select_account]
2064
+ * @param {string} [options.xDomainId]
2064
2065
  * @return {Window|null} - Reference to popup window if created (or `null` otherwise)
2065
2066
  */
2066
2067
  }, {
@@ -2088,7 +2089,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2088
2089
  _ref4$oneStepLogin = _ref4.oneStepLogin,
2089
2090
  oneStepLogin = _ref4$oneStepLogin === void 0 ? false : _ref4$oneStepLogin,
2090
2091
  _ref4$prompt = _ref4.prompt,
2091
- prompt = _ref4$prompt === void 0 ? 'select_account' : _ref4$prompt;
2092
+ prompt = _ref4$prompt === void 0 ? 'select_account' : _ref4$prompt,
2093
+ _ref4$xDomainId = _ref4.xDomainId,
2094
+ xDomainId = _ref4$xDomainId === void 0 ? '' : _ref4$xDomainId;
2092
2095
  this._closePopup();
2093
2096
  this.sessionStorageCache.delete(HAS_SESSION_CACHE_KEY);
2094
2097
  var url = this.loginUrl({
@@ -2102,7 +2105,8 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2102
2105
  maxAge: maxAge,
2103
2106
  locale: locale,
2104
2107
  oneStepLogin: oneStepLogin,
2105
- prompt: prompt
2108
+ prompt: prompt,
2109
+ xDomainId: xDomainId
2106
2110
  });
2107
2111
  if (preferPopup) {
2108
2112
  this.popup = _popup_js__WEBPACK_IMPORTED_MODULE_61__["open"](this.window, url, 'Schibsted account', {
@@ -2208,7 +2212,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2208
2212
  _ref5$oneStepLogin = _ref5.oneStepLogin,
2209
2213
  oneStepLogin = _ref5$oneStepLogin === void 0 ? false : _ref5$oneStepLogin,
2210
2214
  _ref5$prompt = _ref5.prompt,
2211
- prompt = _ref5$prompt === void 0 ? 'select_account' : _ref5$prompt;
2215
+ prompt = _ref5$prompt === void 0 ? 'select_account' : _ref5$prompt,
2216
+ _ref5$xDomainId = _ref5.xDomainId,
2217
+ xDomainId = _ref5$xDomainId === void 0 ? '' : _ref5$xDomainId;
2212
2218
  if (_typeof(arguments[0]) !== 'object') {
2213
2219
  // backward compatibility
2214
2220
  state = arguments[0];
@@ -2238,7 +2244,8 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2238
2244
  max_age: maxAge,
2239
2245
  locale: locale,
2240
2246
  one_step_login: oneStepLogin || '',
2241
- prompt: acrValues ? '' : prompt
2247
+ prompt: acrValues ? '' : prompt,
2248
+ x_domain_id: xDomainId
2242
2249
  });
2243
2250
  }
2244
2251
 
@@ -12005,7 +12012,7 @@ __webpack_require__.r(__webpack_exports__);
12005
12012
 
12006
12013
 
12007
12014
 
12008
- var version = '5.1.0';
12015
+ var version = '5.2.0';
12009
12016
  /* harmony default export */ __webpack_exports__["default"] = (version);
12010
12017
 
12011
12018
  /***/ }),