@opexa/portal-sdk 0.59.100 → 0.59.102

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,6 +1,6 @@
1
- import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint, isIOSPlatform } from './chunk-Y3M3NN6K.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, isIOSPlatform } from './chunk-3N7UZTY4.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 { Capacitor } from '@capacitor/core';
@@ -442,7 +442,7 @@ var SessionManager = class {
442
442
  version,
443
443
  ...data,
444
444
  accessTokenExpiresAt: addMinutes(now, 8).getTime(),
445
- refreshTokenExpiresAt: subMinutes(addDays(now, 30), 2).getTime()
445
+ refreshTokenExpiresAt: subMinutes(addDays(now, 1), 2).getTime()
446
446
  })
447
447
  );
448
448
  return true;
@@ -642,8 +642,7 @@ var SessionManager = class {
642
642
  ...obj,
643
643
  accessToken: res.data.accessToken,
644
644
  refreshToken: res.data.refreshToken ?? obj.refreshToken,
645
- accessTokenExpiresAt: addMinutes(now, 8).getTime(),
646
- refreshTokenExpiresAt: subMinutes(addDays(now, 30), 2).getTime()
645
+ accessTokenExpiresAt: addMinutes(now, 8).getTime()
647
646
  };
648
647
  localStorage.setItem(this.storageKey, JSON.stringify(obj));
649
648
  }