@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.
- package/dist/{chunk-CBF46HKK.js → chunk-443LKA6K.js} +4 -4
- package/dist/chunk-443LKA6K.js.map +1 -0
- package/dist/index.cjs +53 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +52 -9
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +2 -2
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CBF46HKK.js.map +0 -1
|
@@ -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-
|
|
6533
|
-
//# sourceMappingURL=chunk-
|
|
6532
|
+
//# sourceMappingURL=chunk-443LKA6K.js.map
|
|
6533
|
+
//# sourceMappingURL=chunk-443LKA6K.js.map
|