tek-wallet 0.0.77 → 0.0.78

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.
@@ -80,6 +80,7 @@ var loginIntenalService_1 = __importDefault(require("../../services/axios/login-
80
80
  var userClientRequest_1 = require("../../services/axios/clients/userClientRequest");
81
81
  var getBalanceService_1 = __importDefault(require("../../services/axios/get-balance-service/getBalanceService"));
82
82
  var loginIntenalService_2 = __importDefault(require("../../services/axios/sign-out-internal/loginIntenalService"));
83
+ var const_1 = require("../../handlers/const");
83
84
  exports.initialWalletData = {
84
85
  isAuthenticated: false,
85
86
  session: undefined,
@@ -202,7 +203,7 @@ function WalletDataProvider(_a) {
202
203
  var expiredTime = +((_a = session === null || session === void 0 ? void 0 : session.expiresAt) !== null && _a !== void 0 ? _a : 0);
203
204
  console.warn("🚀 ~ React.useEffect ~ expiredTime:", expiredTime, session);
204
205
  var currentTime = Date.now();
205
- var timeDiff = Math.max(expiredTime - currentTime, 0);
206
+ var timeDiff = Math.max(expiredTime - currentTime - const_1.PRE_EXPIRED_TIME, 0);
206
207
  console.warn("🚀 ~ React.useEffect ~ timeDiff:", timeDiff);
207
208
  timeout.current = setTimeout(function () {
208
209
  updateLogin();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",