@sowell/quasar-app-extension-auth 0.3.9 → 0.3.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sowell/quasar-app-extension-auth",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "A Quasar app extension to manage Authentication",
5
5
  "main": "src/index.js",
6
6
  "repository": "https://github.com/sowell-ai/quasar.extension.auth",
@@ -10,7 +10,6 @@ export default boot(({ app, router }: BootInterface) => {
10
10
  } = prompts;
11
11
 
12
12
  router.beforeEach((to, from, next) => {
13
- const auth = JSON.parse(LocalStorage.getItem("vuex") || "{}");
14
13
  const authState = app.config.globalProperties.authState;
15
14
  const isValid = authState.payload?.exp
16
15
  ? new Date(authState.payload?.exp * 1000) >= new Date()
@@ -18,9 +17,6 @@ export default boot(({ app, router }: BootInterface) => {
18
17
  : false
19
18
  : false;
20
19
 
21
- if (authState.raw === "") {
22
- if (auth) authState.updateRaw(auth?.token?.raw);
23
- }
24
20
  let token = authState.raw;
25
21
  if (
26
22
  (!isValid || !token) &&