pangea-lib 4.0.113 → 4.0.114
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.cjs.js +2 -2
- package/dist/main.es.js +2 -3
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1211,11 +1211,10 @@ async function oE(e, t, a) {
|
|
|
1211
1211
|
async function lE() {
|
|
1212
1212
|
const e = be.getConfig(), t = e.stores.useAuthStore(), a = Ct().routeType;
|
|
1213
1213
|
try {
|
|
1214
|
-
console.log("validateAccessToken: ", a);
|
|
1215
1214
|
const r = `${a}s/validateAccessToken`, n = await e.api.getOne(r, void 0, void 0, { preventDisplayError: !0 });
|
|
1216
1215
|
t.setAuthUser(a, n.data);
|
|
1217
1216
|
} catch {
|
|
1218
|
-
|
|
1217
|
+
t.setAuthUser(a, null);
|
|
1219
1218
|
}
|
|
1220
1219
|
}
|
|
1221
1220
|
function BG1(e) {
|
|
@@ -78217,7 +78216,7 @@ function NG1(e) {
|
|
|
78217
78216
|
}
|
|
78218
78217
|
async function DG1() {
|
|
78219
78218
|
const e = be.getConfig(), t = e.routerHelpers;
|
|
78220
|
-
if (
|
|
78219
|
+
if (await lE(), !t.validateRouteAccess(Ct().routeAccess)) {
|
|
78221
78220
|
e.router.push({ name: t.getDefaultRouteName() });
|
|
78222
78221
|
return;
|
|
78223
78222
|
}
|