pangea-lib 4.0.112 → 4.0.113

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.es.js CHANGED
@@ -1211,10 +1211,11 @@ 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);
1214
1215
  const r = `${a}s/validateAccessToken`, n = await e.api.getOne(r, void 0, void 0, { preventDisplayError: !0 });
1215
1216
  t.setAuthUser(a, n.data);
1216
1217
  } catch {
1217
- t.setAuthUser(a, null);
1218
+ console.log("Hubo un error"), t.setAuthUser(a, null);
1218
1219
  }
1219
1220
  }
1220
1221
  function BG1(e) {
@@ -78216,7 +78217,7 @@ function NG1(e) {
78216
78217
  }
78217
78218
  async function DG1() {
78218
78219
  const e = be.getConfig(), t = e.routerHelpers;
78219
- if (await lE(), !t.validateRouteAccess(Ct().routeAccess)) {
78220
+ if (console.log("before validateAccessToken"), await lE(), console.log("after validateAccessToken"), !t.validateRouteAccess(Ct().routeAccess)) {
78220
78221
  e.router.push({ name: t.getDefaultRouteName() });
78221
78222
  return;
78222
78223
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "4.0.112",
4
+ "version": "4.0.113",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",