@bzbs/react-api-client 1.0.1 → 1.0.3

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/dist/index.mjs CHANGED
@@ -41,10 +41,8 @@ var __async = (__this, __arguments, generator) => {
41
41
  // src/api/base-service.ts
42
42
  var BaseService = class {
43
43
  constructor(client, baseUrl) {
44
- if (!client)
45
- throw new Error("Axios client is required.");
46
- if (!baseUrl)
47
- throw new Error("Base URL is required.");
44
+ if (!client) throw new Error("Axios client is required.");
45
+ if (!baseUrl) throw new Error("Base URL is required.");
48
46
  this.client = client;
49
47
  this.baseUrl = baseUrl;
50
48
  }
@@ -525,7 +523,7 @@ var AuthenticateApi = class extends BaseService {
525
523
  validateOtp(params, requestOptions) {
526
524
  return __async(this, null, function* () {
527
525
  return yield this.post(
528
- "auth/otp",
526
+ "auth/validate_otp",
529
527
  __spreadValues({
530
528
  app_id: params.appId,
531
529
  otp: params.otp,