@opexa/portal-sdk 0.59.66 → 0.59.67

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.cjs CHANGED
@@ -4626,7 +4626,7 @@ var AuthService = class {
4626
4626
  return true;
4627
4627
  }
4628
4628
  }
4629
- async sendVerificationCode(input, recaptchaResponse) {
4629
+ async sendVerificationCode(input) {
4630
4630
  if (input.channel === "EMAIL")
4631
4631
  throw new Error("Email channel is not yet supported");
4632
4632
  function getErrorCode(message) {
@@ -4644,15 +4644,8 @@ var AuthService = class {
4644
4644
  try {
4645
4645
  const res = await fetch(`${this.url}/otps`, {
4646
4646
  method: "POST",
4647
- headers: {
4648
- ...this.headers,
4649
- ...recaptchaResponse && {
4650
- "google-recaptcha-response": recaptchaResponse
4651
- }
4652
- },
4653
- body: JSON.stringify({
4654
- ...input
4655
- })
4647
+ headers: this.headers,
4648
+ body: JSON.stringify(input)
4656
4649
  });
4657
4650
  if (res.status === 403) {
4658
4651
  const data = await res.json();