@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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-
|
|
1
|
+
import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-DKB4XCT5.js';
|
|
2
2
|
import { GraphQLClient, isPlainObject } from './chunk-7APXFZ5G.js';
|
|
3
3
|
import './chunk-WVFSGB7Y.js';
|
|
4
4
|
import { ObjectId } from '@opexa/object-id';
|
package/dist/services/index.cjs
CHANGED
|
@@ -4605,7 +4605,7 @@ var AuthService = class {
|
|
|
4605
4605
|
return true;
|
|
4606
4606
|
}
|
|
4607
4607
|
}
|
|
4608
|
-
async sendVerificationCode(input
|
|
4608
|
+
async sendVerificationCode(input) {
|
|
4609
4609
|
if (input.channel === "EMAIL")
|
|
4610
4610
|
throw new Error("Email channel is not yet supported");
|
|
4611
4611
|
function getErrorCode(message) {
|
|
@@ -4623,15 +4623,8 @@ var AuthService = class {
|
|
|
4623
4623
|
try {
|
|
4624
4624
|
const res = await fetch(`${this.url}/otps`, {
|
|
4625
4625
|
method: "POST",
|
|
4626
|
-
headers:
|
|
4627
|
-
|
|
4628
|
-
...recaptchaResponse && {
|
|
4629
|
-
"google-recaptcha-response": recaptchaResponse
|
|
4630
|
-
}
|
|
4631
|
-
},
|
|
4632
|
-
body: JSON.stringify({
|
|
4633
|
-
...input
|
|
4634
|
-
})
|
|
4626
|
+
headers: this.headers,
|
|
4627
|
+
body: JSON.stringify(input)
|
|
4635
4628
|
});
|
|
4636
4629
|
if (res.status === 403) {
|
|
4637
4630
|
const data = await res.json();
|