@opexa/portal-sdk 0.59.92 → 0.59.93
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -377,7 +377,7 @@ var SessionManager = class {
|
|
|
377
377
|
return false;
|
|
378
378
|
}
|
|
379
379
|
this.v4AccessToken = data.accessToken;
|
|
380
|
-
this.v4AccessTokenExpiresAt = addMinutes(now,
|
|
380
|
+
this.v4AccessTokenExpiresAt = addMinutes(now, 4).getTime();
|
|
381
381
|
localStorage.setItem(
|
|
382
382
|
this.storageKey,
|
|
383
383
|
JSON.stringify({ version, session: data.session })
|
|
@@ -718,7 +718,7 @@ var SessionManager = class {
|
|
|
718
718
|
this.logger.success("Session refreshed!");
|
|
719
719
|
const now = /* @__PURE__ */ new Date();
|
|
720
720
|
this.v4AccessToken = res.data.accessToken;
|
|
721
|
-
this.v4AccessTokenExpiresAt = addMinutes(now,
|
|
721
|
+
this.v4AccessTokenExpiresAt = addMinutes(now, 4).getTime();
|
|
722
722
|
return {
|
|
723
723
|
ok: true,
|
|
724
724
|
data: {
|