You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,24 @@
9
9
## Usage
10
10
If you are using the default options, setting up JWT auth for your Feathers app is as simple as the below example. Note: You must set up the `body-parser` module before setting up `feathers-authentication`.
11
11
12
+
```js
13
+
var app =feathers()
14
+
.configure(feathers.rest())
15
+
.configure(feathers.socketio())
16
+
.configure(hooks())
17
+
.use(bodyParser.json())
18
+
.use(bodyParser.urlencoded({ extended:true }))
19
+
20
+
// Configure feathers-authentication
21
+
.configure(feathersAuth({
22
+
secret:'feathers-rocks'
23
+
}));
24
+
```
25
+
26
+
## Getting Started Tutorial
27
+
28
+
Here's a more complete example that you can use to get started.
0 commit comments