@opexa/portal-sdk 0.35.2 → 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 -3
- 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 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1251,14 +1251,12 @@ var REGISTER_MEMBER_ACCOUNT_VIA_MOBILE_MUTATION = gql`
|
|
|
1251
1251
|
$referralCode: String
|
|
1252
1252
|
$reCAPTCHAResponse: String
|
|
1253
1253
|
$verificationCode: String
|
|
1254
|
-
$testPass: String
|
|
1255
1254
|
) {
|
|
1256
1255
|
registerMemberAccountViaMobile(
|
|
1257
1256
|
input: $input
|
|
1258
1257
|
referralCode: $referralCode
|
|
1259
1258
|
verificationCode: $verificationCode
|
|
1260
1259
|
reCAPTCHAResponse: $reCAPTCHAResponse
|
|
1261
|
-
testPass: $testPass
|
|
1262
1260
|
) {
|
|
1263
1261
|
... on InvalidPlatformError {
|
|
1264
1262
|
__typename
|
|
@@ -2492,6 +2490,9 @@ var AuthService = class {
|
|
|
2492
2490
|
if (input.reCAPTCHAResponse) {
|
|
2493
2491
|
headers.set("google-recaptcha-response", input.reCAPTCHAResponse);
|
|
2494
2492
|
}
|
|
2493
|
+
if (input.testPass) {
|
|
2494
|
+
headers.set("test-pass", input.testPass);
|
|
2495
|
+
}
|
|
2495
2496
|
try {
|
|
2496
2497
|
const res = await fetch(`${this.url}/sessions`, {
|
|
2497
2498
|
method: "POST",
|
|
@@ -6107,7 +6108,8 @@ var Sdk = class {
|
|
|
6107
6108
|
type: "MOBILE_NUMBER",
|
|
6108
6109
|
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
6109
6110
|
verificationCode: input.verificationCode,
|
|
6110
|
-
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
6111
|
+
reCAPTCHAResponse: input.reCAPTCHAResponse,
|
|
6112
|
+
testPass: input.testPass
|
|
6111
6113
|
});
|
|
6112
6114
|
return res.ok ? { ok: true } : res;
|
|
6113
6115
|
}
|