File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ The Auth module helps setup your app for login / logout. It includes the follow
9
9
accessToken: undefined , // The JWT
10
10
payload: undefined , // The JWT payload
11
11
12
- // entityIdField is only in v1.7.0-pre.41 or later
13
12
entityIdField: ' userId' , // The property in the payload storing the user id
14
13
responseEntityField: ' user' , // The property in the payload storing the user
15
14
@@ -47,6 +46,8 @@ const store = new Vuex.Store({
47
46
plugins: [
48
47
auth ({
49
48
userService: ' users' , // if your user service endpoint is named 'users'
49
+ entityIdField: ' userId' , // The property in the payload storing the user id
50
+ responseEntityField: ' user' , // The property in the payload storing the user
50
51
state: {}, // Custom state
51
52
getters: {}, // Custom getters
52
53
mutations: {}, // Custom mutations
You can’t perform that action at this time.
0 commit comments