@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.
@@ -4678,7 +4678,7 @@ var AuthService = class {
4678
4678
  return true;
4679
4679
  }
4680
4680
  }
4681
- async sendVerificationCode(input) {
4681
+ async sendVerificationCode(input, version = 1) {
4682
4682
  if (input.channel === "EMAIL")
4683
4683
  throw new Error("Email channel is not yet supported");
4684
4684
  function getErrorCode(message) {
@@ -4694,7 +4694,7 @@ var AuthService = class {
4694
4694
  }
4695
4695
  }
4696
4696
  try {
4697
- const res = await fetch(`${this.url}/otps`, {
4697
+ const res = await fetch(`${this.url}${version !== 1 ? `/v${version}/otps` : "/otps"}`, {
4698
4698
  method: "POST",
4699
4699
  headers: this.headers,
4700
4700
  body: JSON.stringify(input)
@@ -6529,5 +6529,5 @@ var ExtensionService = class {
6529
6529
  };
6530
6530
 
6531
6531
  export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint };
6532
- //# sourceMappingURL=chunk-CBF46HKK.js.map
6533
- //# sourceMappingURL=chunk-CBF46HKK.js.map
6532
+ //# sourceMappingURL=chunk-443LKA6K.js.map
6533
+ //# sourceMappingURL=chunk-443LKA6K.js.map