@opexa/portal-sdk 0.59.102 → 0.59.103
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-3N7UZTY4.js → chunk-V5LOWEED.js} +11 -2
- package/dist/chunk-V5LOWEED.js.map +1 -0
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/services/index.cjs +9 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3N7UZTY4.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, isIOSPlatform } from './chunk-
|
|
1
|
+
import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint, isIOSPlatform } from './chunk-V5LOWEED.js';
|
|
2
2
|
import { GraphQLClient, isPlainObject } from './chunk-5WRVWQBT.js';
|
|
3
3
|
import './chunk-ROBGEUSE.js';
|
|
4
4
|
import { ObjectId } from '@opexa/object-id';
|
package/dist/services/index.cjs
CHANGED
|
@@ -4823,6 +4823,15 @@ var AuthService = class {
|
|
|
4823
4823
|
error: createOperationError("InvalidReCAPTCHAResponseError")
|
|
4824
4824
|
};
|
|
4825
4825
|
}
|
|
4826
|
+
if (input.type === "NAME_AND_PASSWORD" && res.status === 401) {
|
|
4827
|
+
return {
|
|
4828
|
+
ok: false,
|
|
4829
|
+
error: statusCodeToOperationError(
|
|
4830
|
+
res.status,
|
|
4831
|
+
"Invalid username or password"
|
|
4832
|
+
)
|
|
4833
|
+
};
|
|
4834
|
+
}
|
|
4826
4835
|
return {
|
|
4827
4836
|
ok: false,
|
|
4828
4837
|
error: statusCodeToOperationError(res.status)
|