@livechat/accounts-sdk 2.0.9 → 2.0.10

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.
@@ -3211,6 +3211,7 @@
3211
3211
  * @constructor
3212
3212
  * @param {Object} options
3213
3213
  * @param {String} options.client_id registered client ID
3214
+ * @param {String} options.organization_id organization ID
3214
3215
  * @param {String} [options.prompt=''] use `consent` to force consent prompt in popup and redirect flows
3215
3216
  * @param {String} [options.response_type='token'] OAuth response type, use `token` or `code`
3216
3217
  * @param {String} [options.popup_flow='auto'] `auto` - close popup when not required, `manual` - always show popup
@@ -3237,6 +3238,7 @@
3237
3238
  throw new Error('client id not provided');
3238
3239
  }
3239
3240
  const defaultOptions = {
3241
+ organization_id: '',
3240
3242
  prompt: '',
3241
3243
  response_type: 'token',
3242
3244
  popup_flow: 'auto',
@@ -3311,7 +3313,7 @@
3311
3313
  if (!localOptions.redirect_uri) {
3312
3314
  localOptions.redirect_uri = window.location.href;
3313
3315
  }
3314
- const params = pick(localOptions, ['client_id', 'redirect_uri', 'state', 'response_type', 'scope', 'prompt']);
3316
+ const params = pick(localOptions, ['client_id', 'organization_id', 'redirect_uri', 'state', 'response_type', 'scope', 'prompt']);
3315
3317
  Object.assign(params, localOptions.tracking);
3316
3318
  if (params.scope === null) {
3317
3319
  delete params.scope;