@verdocs/web-sdk 4.2.77 → 4.2.78

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.
@@ -99,7 +99,7 @@ const VerdocsAuth = class {
99
99
  this.submitting = false;
100
100
  (_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, profile: null, session: null });
101
101
  (_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new errors.SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
102
- Toast.VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
102
+ Toast.VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error) || 'Unknown Error', { style: 'error' });
103
103
  });
104
104
  }
105
105
  async handleVerification() {
@@ -113,7 +113,7 @@ export class VerdocsAuth {
113
113
  this.submitting = false;
114
114
  (_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, profile: null, session: null });
115
115
  (_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
116
- VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
116
+ VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error) || 'Unknown Error', { style: 'error' });
117
117
  });
118
118
  }
119
119
  async handleVerification() {
@@ -99,7 +99,7 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsAuth extends
99
99
  this.submitting = false;
100
100
  (_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, profile: null, session: null });
101
101
  (_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
102
- VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
102
+ VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error) || 'Unknown Error', { style: 'error' });
103
103
  });
104
104
  }
105
105
  async handleVerification() {