@sowell/quasar-app-extension-auth 1.2.4 → 1.3.0

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": "1.2.4",
3
+ "version": "1.3.0",
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",
@@ -190,7 +190,6 @@ import SowellMessage from "../dialogs/Message.vue"
190
190
  import { useAuth } from "composables/auth"
191
191
  import { AxiosError } from "axios"
192
192
  import MicrosoftLogo from "../../assets/logo-microsoft.svg"
193
- import { useQuasar } from "quasar"
194
193
 
195
194
  export default defineComponent({
196
195
  name: "Auth",
@@ -221,8 +220,6 @@ export default defineComponent({
221
220
  goToOtpValidation
222
221
  } = useAuth()
223
222
 
224
- const { localStorage } = useQuasar()
225
-
226
223
  const handleSubmit = () => {
227
224
  onSubmit()
228
225
  }
@@ -260,10 +257,8 @@ export default defineComponent({
260
257
 
261
258
  onMounted(() => {
262
259
  appVersion.versionNumber = packageInfo.version
263
- if (localStorage.has("lastUser")) {
264
260
  const lastUserEmail = localStorage.getItem("lastUser")
265
- email.value = lastUserEmail
266
- }
261
+ if (lastUserEmail) email.value = lastUserEmail
267
262
  })
268
263
 
269
264
  return {