@drax/identity-vue 0.37.4 → 0.39.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 +8 -8
- package/src/stores/AuthStore.ts +3 -3
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.39.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/common-front": "^0.
|
|
28
|
-
"@drax/common-vue": "^0.
|
|
29
|
-
"@drax/crud-front": "^0.
|
|
30
|
-
"@drax/crud-share": "^0.
|
|
31
|
-
"@drax/crud-vue": "^0.
|
|
32
|
-
"@drax/identity-share": "^0.
|
|
27
|
+
"@drax/common-front": "^0.39.0",
|
|
28
|
+
"@drax/common-vue": "^0.39.0",
|
|
29
|
+
"@drax/crud-front": "^0.39.0",
|
|
30
|
+
"@drax/crud-share": "^0.39.0",
|
|
31
|
+
"@drax/crud-vue": "^0.39.0",
|
|
32
|
+
"@drax/identity-share": "^0.39.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"pinia": "^2.2.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"vue-tsc": "^2.1.6",
|
|
67
67
|
"vuetify": "^3.7.1"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "b019c40f954cf60e4ff61c53e27d5bafaea6f16c"
|
|
70
70
|
}
|
package/src/stores/AuthStore.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Utilities
|
|
2
2
|
import { defineStore } from 'pinia'
|
|
3
|
-
import type {
|
|
3
|
+
import type {IAuthFullUser} from "@drax/identity-front";
|
|
4
4
|
//@ts-ignore
|
|
5
5
|
import type from 'pinia-plugin-persistedstate'
|
|
6
6
|
import {AuthHelper} from "@drax/identity-front";
|
|
@@ -8,7 +8,7 @@ import {AuthHelper} from "@drax/identity-front";
|
|
|
8
8
|
export const useAuthStore = defineStore('AuthStore', {
|
|
9
9
|
state: () => ({
|
|
10
10
|
accessToken: null as string | null,
|
|
11
|
-
authUser: null as
|
|
11
|
+
authUser: null as IAuthFullUser | null,
|
|
12
12
|
}),
|
|
13
13
|
getters:{
|
|
14
14
|
isAuth: (state): boolean => {
|
|
@@ -26,7 +26,7 @@ export const useAuthStore = defineStore('AuthStore', {
|
|
|
26
26
|
setAccessToken(accessToken:string){
|
|
27
27
|
this.accessToken = accessToken
|
|
28
28
|
},
|
|
29
|
-
setAuthUser(authUser:
|
|
29
|
+
setAuthUser(authUser:IAuthFullUser){
|
|
30
30
|
this.authUser = authUser
|
|
31
31
|
},
|
|
32
32
|
clearAuth(){
|