@sowell/quasar-app-extension-auth 1.2.2 → 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.
@@ -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.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",
@@ -257,6 +257,8 @@ export default defineComponent({
257
257
 
258
258
  onMounted(() => {
259
259
  appVersion.versionNumber = packageInfo.version
260
+ const lastUserEmail = localStorage.getItem("lastUser")
261
+ if (lastUserEmail) email.value = lastUserEmail
260
262
  })
261
263
 
262
264
  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) {