@lgsm/modules 1.6.4 → 1.6.6
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 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -7168,10 +7168,10 @@ function Wu(e, t, n) {
|
|
|
7168
7168
|
(r) => {
|
|
7169
7169
|
var s, a, i, u, c, d, l, b, x, h;
|
|
7170
7170
|
const o = r.response.status;
|
|
7171
|
-
if (o == 401
|
|
7172
|
-
lr("Unauthorized", "Your session has expired. Please log in again."), setTimeout(() => {
|
|
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
|
+
window.sessionStorage.getItem("hasReloadedFor401") ? (window.sessionStorage.removeItem("hasReloadedFor401"), lr("Unauthorized", "Your session has expired. Please log in again."), setTimeout(() => {
|
|
7173
7173
|
au(n);
|
|
7174
|
-
}, 1500);
|
|
7174
|
+
}, 1500)) : (window.sessionStorage.setItem("hasReloadedFor401", "true"), window.location.reload());
|
|
7175
7175
|
else if (o > 299) {
|
|
7176
7176
|
const p = ((c = r.config) == null ? void 0 : c.url) || "", g = p.substring(p.lastIndexOf("/"));
|
|
7177
7177
|
lr(
|