@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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint, isIOSPlatform } from './chunk-3N7UZTY4.js';
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';
@@ -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)