Skip to content

Commit 6c2291f

Browse files
committed
docs: add props to auth config
1 parent b25b4bb commit 6c2291f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/auth-plugin.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ The Auth module helps setup your app for login / logout. It includes the follow
99
accessToken: undefined, // The JWT
1010
payload: undefined, // The JWT payload
1111

12-
// entityIdField is only in v1.7.0-pre.41 or later
1312
entityIdField: 'userId', // The property in the payload storing the user id
1413
responseEntityField: 'user', // The property in the payload storing the user
1514

@@ -47,6 +46,8 @@ const store = new Vuex.Store({
4746
plugins: [
4847
auth({
4948
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
5051
state: {}, // Custom state
5152
getters: {}, // Custom getters
5253
mutations: {}, // Custom mutations

0 commit comments

Comments
 (0)