@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/README.md +1634 -1634
- package/dist/{chunk-Y3M3NN6K.js → chunk-3N7UZTY4.js} +3 -3
- package/dist/chunk-3N7UZTY4.js.map +1 -0
- package/dist/{chunk-7APXFZ5G.js → chunk-5WRVWQBT.js} +3 -3
- package/dist/chunk-5WRVWQBT.js.map +1 -0
- package/dist/{chunk-WVFSGB7Y.js → chunk-ROBGEUSE.js} +2 -2
- package/dist/chunk-ROBGEUSE.js.map +1 -0
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +2 -2
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-7APXFZ5G.js.map +0 -1
- package/dist/chunk-WVFSGB7Y.js.map +0 -1
- package/dist/chunk-Y3M3NN6K.js.map +0 -1
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-
|
|
2
|
-
import { GraphQLClient, isPlainObject } from './chunk-
|
|
3
|
-
import './chunk-
|
|
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,
|
|
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
|
}
|