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

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.
@@ -2,8 +2,8 @@ name: npm-publish
2
2
 
3
3
  on:
4
4
  push:
5
- branches:
6
- - master
5
+ tags:
6
+ - '*'
7
7
 
8
8
  jobs:
9
9
  npm-publish:
@@ -11,9 +11,9 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout repository
14
- uses: actions/checkout@v2
14
+ uses: actions/checkout@v4
15
15
  - name: Nodejs
16
- uses: actions/setup-node@v2
16
+ uses: actions/setup-node@v4
17
17
  with:
18
18
  node-version: "16"
19
19
  cache: yarn
@@ -21,4 +21,4 @@ jobs:
21
21
  - name: publish
22
22
  run: npm publish --access public
23
23
  env:
24
- NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
24
+ NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sowell/quasar-app-extension-auth",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
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,6 +190,7 @@ 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"
193
194
 
194
195
  export default defineComponent({
195
196
  name: "Auth",
@@ -220,6 +221,8 @@ export default defineComponent({
220
221
  goToOtpValidation
221
222
  } = useAuth()
222
223
 
224
+ const { localStorage } = useQuasar()
225
+
223
226
  const handleSubmit = () => {
224
227
  onSubmit()
225
228
  }
@@ -257,6 +260,10 @@ export default defineComponent({
257
260
 
258
261
  onMounted(() => {
259
262
  appVersion.versionNumber = packageInfo.version
263
+ if (localStorage.has("lastUser")) {
264
+ const lastUserEmail = localStorage.getItem("lastUser")
265
+ email.value = lastUserEmail
266
+ }
260
267
  })
261
268
 
262
269
  return {
@@ -148,6 +148,7 @@ export function useAuth() {
148
148
 
149
149
  data.auth.password = encrypt(password.value);
150
150
  localStorage.set("credentials",{ ...data.auth, provider: provider })
151
+ localStorage.set("lastUser", email.value)
151
152
  }
152
153
  push(LOCAL_SUCCESS_REDIRECTION_ROUTE)
153
154
  } catch (err) {