@opexa/portal-sdk 0.59.90 → 0.59.91

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.d.cts CHANGED
@@ -23,6 +23,11 @@ interface SdkConfig {
23
23
  site: string;
24
24
  sitePlatform: string;
25
25
  platform: string;
26
+ /**
27
+ * Overrides the auth service base URL for all environments, taking
28
+ * precedence over `ENDPOINTS[environment].auth`.
29
+ */
30
+ authApiBaseUrl?: string;
26
31
  logs?: boolean;
27
32
  sessionStorage?: 'cookie' | 'localStorage';
28
33
  middleware?: GraphQLClientMiddleware;
package/dist/index.d.ts CHANGED
@@ -23,6 +23,11 @@ interface SdkConfig {
23
23
  site: string;
24
24
  sitePlatform: string;
25
25
  platform: string;
26
+ /**
27
+ * Overrides the auth service base URL for all environments, taking
28
+ * precedence over `ENDPOINTS[environment].auth`.
29
+ */
30
+ authApiBaseUrl?: string;
26
31
  logs?: boolean;
27
32
  sessionStorage?: 'cookie' | 'localStorage';
28
33
  middleware?: GraphQLClientMiddleware;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-HJSVCLHQ.js';
2
- import { GraphQLClient, isPlainObject } from './chunk-7APXFZ5G.js';
3
- import './chunk-WVFSGB7Y.js';
1
+ import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-5DPGJBK3.js';
2
+ import { GraphQLClient, isPlainObject } from './chunk-5WRVWQBT.js';
3
+ import './chunk-ROBGEUSE.js';
4
4
  import { ObjectId } from '@opexa/object-id';
5
5
  export { ObjectId } from '@opexa/object-id';
6
6
  import { App } from '@capacitor/app';
@@ -3109,6 +3109,7 @@ var Sdk = class {
3109
3109
  sitePlatform,
3110
3110
  platform,
3111
3111
  environment,
3112
+ authApiBaseUrl,
3112
3113
  logs
3113
3114
  } = Object.assign(defaultConfig, config);
3114
3115
  const production = environment === "production";
@@ -3118,7 +3119,7 @@ var Sdk = class {
3118
3119
  const adManager = new AdManager({ logger });
3119
3120
  const cellexpertManager = new CellexpertManager({ logger });
3120
3121
  const transformer = new Transformer();
3121
- const authUrl = ENDPOINTS[environment].auth;
3122
+ const authUrl = authApiBaseUrl || ENDPOINTS[environment].auth;
3122
3123
  const walletUrl = ENDPOINTS[environment].wallet;
3123
3124
  const extensionUrl = ENDPOINTS[environment].extension;
3124
3125
  const reportUrl = ENDPOINTS[environment].report;