@opexa/portal-sdk 0.35.3 → 0.35.4
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/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2490,6 +2490,9 @@ var AuthService = class {
|
|
|
2490
2490
|
if (input.reCAPTCHAResponse) {
|
|
2491
2491
|
headers.set("google-recaptcha-response", input.reCAPTCHAResponse);
|
|
2492
2492
|
}
|
|
2493
|
+
if (input.testPass) {
|
|
2494
|
+
headers.set("test-pass", input.testPass);
|
|
2495
|
+
}
|
|
2493
2496
|
try {
|
|
2494
2497
|
const res = await fetch(`${this.url}/sessions`, {
|
|
2495
2498
|
method: "POST",
|
|
@@ -6105,7 +6108,8 @@ var Sdk = class {
|
|
|
6105
6108
|
type: "MOBILE_NUMBER",
|
|
6106
6109
|
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
6107
6110
|
verificationCode: input.verificationCode,
|
|
6108
|
-
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
6111
|
+
reCAPTCHAResponse: input.reCAPTCHAResponse,
|
|
6112
|
+
testPass: input.testPass
|
|
6109
6113
|
});
|
|
6110
6114
|
return res.ok ? { ok: true } : res;
|
|
6111
6115
|
}
|