@opexa/portal-sdk 0.59.80 → 0.59.81

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.
@@ -4707,7 +4707,7 @@ var AuthService = class {
4707
4707
  return true;
4708
4708
  }
4709
4709
  }
4710
- async sendVerificationCode(input) {
4710
+ async sendVerificationCode(input, version = 1) {
4711
4711
  if (input.channel === "EMAIL")
4712
4712
  throw new Error("Email channel is not yet supported");
4713
4713
  function getErrorCode(message) {
@@ -4723,7 +4723,7 @@ var AuthService = class {
4723
4723
  }
4724
4724
  }
4725
4725
  try {
4726
- const res = await fetch(`${this.url}/otps`, {
4726
+ const res = await fetch(`${this.url}${version !== 1 ? `/v${version}/otps` : "/otps"}`, {
4727
4727
  method: "POST",
4728
4728
  headers: this.headers,
4729
4729
  body: JSON.stringify(input)