@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.cjs
CHANGED
|
@@ -7498,7 +7498,7 @@ var SessionManager = class {
|
|
|
7498
7498
|
return false;
|
|
7499
7499
|
}
|
|
7500
7500
|
this.v4AccessToken = data.accessToken;
|
|
7501
|
-
this.v4AccessTokenExpiresAt = addMinutes(now,
|
|
7501
|
+
this.v4AccessTokenExpiresAt = addMinutes(now, 4).getTime();
|
|
7502
7502
|
localStorage.setItem(
|
|
7503
7503
|
this.storageKey,
|
|
7504
7504
|
JSON.stringify({ version, session: data.session })
|
|
@@ -7839,7 +7839,7 @@ var SessionManager = class {
|
|
|
7839
7839
|
this.logger.success("Session refreshed!");
|
|
7840
7840
|
const now = /* @__PURE__ */ new Date();
|
|
7841
7841
|
this.v4AccessToken = res.data.accessToken;
|
|
7842
|
-
this.v4AccessTokenExpiresAt = addMinutes(now,
|
|
7842
|
+
this.v4AccessTokenExpiresAt = addMinutes(now, 4).getTime();
|
|
7843
7843
|
return {
|
|
7844
7844
|
ok: true,
|
|
7845
7845
|
data: {
|