@formant/data-sdk 1.13.0 → 1.13.1

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.
@@ -220,7 +220,7 @@ class ve {
220
220
  )).ok;
221
221
  }
222
222
  async respondToNewPasswordRequiredChallenge(e) {
223
- return await (await fetch(
223
+ const t = await fetch(
224
224
  `${this._apiUrl}/v1/admin/auth/respond-to-new-password-required-challenge`,
225
225
  {
226
226
  method: "POST",
@@ -229,7 +229,10 @@ class ve {
229
229
  "Content-Type": "application/json"
230
230
  }
231
231
  }
232
- )).json();
232
+ );
233
+ if (t.ok)
234
+ return await t.json();
235
+ throw new Error("respond-to-new-password-required-challenge failed");
233
236
  }
234
237
  async loginWithGoogle(e) {
235
238
  return await (await fetch(`${this._apiUrl}/v1/admin/auth/login-google`, {