@opexa/portal-sdk 0.35.3 → 0.35.5
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -419,6 +419,7 @@ interface NameAndPasswordSignInInput {
|
|
|
419
419
|
name: string;
|
|
420
420
|
password: string;
|
|
421
421
|
reCAPTCHAResponse?: string;
|
|
422
|
+
testPass?: string;
|
|
422
423
|
}
|
|
423
424
|
/**
|
|
424
425
|
* @deprecated use `type: "SOCIAL"`
|
|
@@ -440,6 +441,7 @@ interface MobileNumberSignInInput {
|
|
|
440
441
|
mobileNumber: string;
|
|
441
442
|
verificationCode: string;
|
|
442
443
|
reCAPTCHAResponse?: string;
|
|
444
|
+
testPass?: string;
|
|
443
445
|
}
|
|
444
446
|
interface MayaSignInInput {
|
|
445
447
|
type: 'MAYA';
|
package/dist/index.d.ts
CHANGED
|
@@ -419,6 +419,7 @@ interface NameAndPasswordSignInInput {
|
|
|
419
419
|
name: string;
|
|
420
420
|
password: string;
|
|
421
421
|
reCAPTCHAResponse?: string;
|
|
422
|
+
testPass?: string;
|
|
422
423
|
}
|
|
423
424
|
/**
|
|
424
425
|
* @deprecated use `type: "SOCIAL"`
|
|
@@ -440,6 +441,7 @@ interface MobileNumberSignInInput {
|
|
|
440
441
|
mobileNumber: string;
|
|
441
442
|
verificationCode: string;
|
|
442
443
|
reCAPTCHAResponse?: string;
|
|
444
|
+
testPass?: string;
|
|
443
445
|
}
|
|
444
446
|
interface MayaSignInInput {
|
|
445
447
|
type: 'MAYA';
|
package/dist/index.js
CHANGED
|
@@ -2485,6 +2485,9 @@ var AuthService = class {
|
|
|
2485
2485
|
if (input.reCAPTCHAResponse) {
|
|
2486
2486
|
headers.set("google-recaptcha-response", input.reCAPTCHAResponse);
|
|
2487
2487
|
}
|
|
2488
|
+
if (input.testPass) {
|
|
2489
|
+
headers.set("test-pass", input.testPass);
|
|
2490
|
+
}
|
|
2488
2491
|
try {
|
|
2489
2492
|
const res = await fetch(`${this.url}/sessions`, {
|
|
2490
2493
|
method: "POST",
|
|
@@ -6100,7 +6103,8 @@ var Sdk = class {
|
|
|
6100
6103
|
type: "MOBILE_NUMBER",
|
|
6101
6104
|
mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
|
|
6102
6105
|
verificationCode: input.verificationCode,
|
|
6103
|
-
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
6106
|
+
reCAPTCHAResponse: input.reCAPTCHAResponse,
|
|
6107
|
+
testPass: input.testPass
|
|
6104
6108
|
});
|
|
6105
6109
|
return res.ok ? { ok: true } : res;
|
|
6106
6110
|
}
|