@opexa/portal-sdk 0.0.61 → 0.0.62

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
@@ -1427,9 +1427,10 @@ class Ct {
1427
1427
  }
1428
1428
  }
1429
1429
  async sendVerificationCode(e) {
1430
+ const t = W(e);
1430
1431
  try {
1431
- const t = await fetch(`${this.url}/sendVerificationCode`, {
1432
- method: "GET",
1432
+ const r = await fetch(`${this.url}/sendVerificationCode`, {
1433
+ method: "POST",
1433
1434
  headers: {
1434
1435
  "Content-Type": "application/json",
1435
1436
  "Platform-Code": this.platform,
@@ -1437,12 +1438,12 @@ class Ct {
1437
1438
  },
1438
1439
  body: JSON.stringify({
1439
1440
  channel: "SMS",
1440
- recipient: W(e)
1441
+ recipient: t
1441
1442
  })
1442
1443
  });
1443
- return t.ok ? { ok: !0 } : {
1444
+ return r.ok ? { ok: !0 } : {
1444
1445
  ok: !1,
1445
- error: h(t.status)
1446
+ error: h(r.status)
1446
1447
  };
1447
1448
  } catch {
1448
1449
  return {