@sowell/quasar-app-extension-auth 0.3.19 → 0.3.20

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.19",
3
+ "version": "0.3.20",
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",
@@ -87,23 +87,19 @@ export function useAuth() {
87
87
  if (requestedRoles) options.headers["x-requested-roles"] = requestedRoles;
88
88
 
89
89
  try {
90
- await authState.signin(data, options);
90
+ await authState.signin(data, options)
91
+ loading.value = false;
91
92
  // @ts-ignore
92
93
  if (!window.Cypress) {
93
- const isDifferentUser =
94
- !localStorage.getItem("credentials") ||
95
- // @ts-ignore
96
- JSON.parse(localStorage.getItem("credentials")).email !== data.auth.email;
97
-
98
- if (isDifferentUser) {
99
- localStorage.setItem("credentials", JSON.stringify(data.auth));
100
- }
94
+ // FIXME: encrypt password
95
+ localStorage.setItem("credentials", JSON.stringify(data.auth))
101
96
  }
102
97
  push(LOCAL_SUCCESS_REDIRECTION_ROUTE);
103
- loading.value = false;
104
- } catch (err) {
98
+ }
99
+ catch(err) {
105
100
  loading.value = false;
106
101
  }
102
+
107
103
  };
108
104
 
109
105
  const isSubmitBtnDisabled = () => {