@lgsm/modules 1.6.8 → 1.6.9
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/main.js +3 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -7170,7 +7170,7 @@ function Wu(e, t, n) {
|
|
|
7170
7170
|
const o = r.response.status;
|
|
7171
7171
|
if (o == 401 || (a = (s = r.response) == null ? void 0 : s.data) != null && a.message.includes("expired") || (u = (i = r.response) == null ? void 0 : i.data) != null && u.message.includes("revoked"))
|
|
7172
7172
|
if (window.sessionStorage.getItem("hasReloadedFor401"))
|
|
7173
|
-
window.sessionStorage.removeItem("hasReloadedFor401"), lr("Session Ended", "Your session has ended. Please log in again to continue."), setTimeout(() => {
|
|
7173
|
+
window.sessionStorage.removeItem("hasReloadedFor401"), document.cookie = "refresh_token=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/", lr("Session Ended", "Your session has ended. Please log in again to continue."), setTimeout(() => {
|
|
7174
7174
|
iu(n);
|
|
7175
7175
|
}, 1500);
|
|
7176
7176
|
else
|
|
@@ -7222,10 +7222,8 @@ const Ku = {
|
|
|
7222
7222
|
}
|
|
7223
7223
|
}
|
|
7224
7224
|
}, iu = (e) => {
|
|
7225
|
-
const t = window.location.href
|
|
7226
|
-
window.location.
|
|
7227
|
-
t
|
|
7228
|
-
)}`;
|
|
7225
|
+
const t = window.location.href, n = `${e ?? "https://login.lgsm-dev.com/login"}?redirect_to=${encodeURIComponent(t)}`;
|
|
7226
|
+
window.location.replace(n);
|
|
7229
7227
|
};
|
|
7230
7228
|
class rt extends Error {
|
|
7231
7229
|
}
|