@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/{chunk-22E7HNRO.js → chunk-DKB4XCT5.js} +5 -12
- package/dist/chunk-DKB4XCT5.js.map +1 -0
- package/dist/index.cjs +3 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/services/index.cjs +3 -10
- 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-22E7HNRO.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4626,7 +4626,7 @@ var AuthService = class {
|
|
|
4626
4626
|
return true;
|
|
4627
4627
|
}
|
|
4628
4628
|
}
|
|
4629
|
-
async sendVerificationCode(input
|
|
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
|
-
|
|
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();
|