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.
1 parent 3dc2724 commit 6884bceCopy full SHA for 6884bce
demos/basic.js
@@ -3,6 +3,8 @@
3
const gateway = require('./../index')
4
const PORT = process.env.PORT || 8080
5
6
+var { expressjwt: jwt } = require('express-jwt')
7
+
8
gateway({
9
middlewares: [
10
require('cors')(),
@@ -24,7 +26,7 @@ gateway({
24
26
prefix: '/admin',
25
27
target: 'http://localhost:3001',
28
- require('express-jwt')({
29
+ jwt({
30
secret: 'shhhhhhared-secret',
31
algorithms: ['HS256']
32
})
0 commit comments