@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
package/dist/services/index.cjs
CHANGED
|
@@ -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)
|