adminforth 1.1.68 → 1.1.69

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/auth.ts CHANGED
@@ -72,7 +72,8 @@ class AdminForthAuth {
72
72
  }
73
73
  const { pk, t } = decoded;
74
74
  if (t !== mustHaveType) {
75
- throw new Error(`Invalid token type during verification: ${t}, must be ${mustHaveType}`);
75
+ console.error(`Invalid token type during verification: ${t}, must be ${mustHaveType}`);
76
+ return null;
76
77
  }
77
78
  if (pk === null) {
78
79
  decoded.isRoot = true;
package/dist/auth.js CHANGED
@@ -70,7 +70,8 @@ class AdminForthAuth {
70
70
  }
71
71
  const { pk, t } = decoded;
72
72
  if (t !== mustHaveType) {
73
- throw new Error(`Invalid token type during verification: ${t}, must be ${mustHaveType}`);
73
+ console.error(`Invalid token type during verification: ${t}, must be ${mustHaveType}`);
74
+ return null;
74
75
  }
75
76
  if (pk === null) {
76
77
  decoded.isRoot = true;
@@ -103,6 +103,8 @@ onMounted(() => {
103
103
  coreStore.getPublicConfig()
104
104
  });
105
105
 
106
+
107
+
106
108
  async function login() {
107
109
  inProgress.value = true;
108
110
  const resp = await callAdminForthApi({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.1.68",
3
+ "version": "1.1.69",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -103,6 +103,8 @@ onMounted(() => {
103
103
  coreStore.getPublicConfig()
104
104
  });
105
105
 
106
+
107
+
106
108
  async function login() {
107
109
  inProgress.value = true;
108
110
  const resp = await callAdminForthApi({