We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d34716 + 4df8fa7 commit f11b577Copy full SHA for f11b577
README.md
@@ -547,6 +547,20 @@ const feathersClient = feathers()
547
### Configuration
548
You can provide a `userService` in the auth plugin's options to automatically populate the user upon successful login.
549
550
+```js
551
+import Vuex from 'vuex'
552
+import feathersClient from './feathers-client'
553
+import feathersVuex from 'feathers-vuex'
554
+
555
+const { auth } = feathersVuex(feathersClient, { idField: '_id' })
556
557
+const store = new Vuex.Store({
558
+ plugins: [
559
+ auth({ userService: 'users' }) // if your user service endpoint is named 'users'
560
+ ]
561
+})
562
+```
563
564
## License
565
566
Copyright (c) Forever and Ever, or at least the current year.
0 commit comments