Skip to content

Commit b31559b

Browse files
committed
updating express-jwt usage
1 parent cfe9cd8 commit b31559b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demos/basic-express.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ gateway({
2525
target: 'http://localhost:3001',
2626
middlewares: [
2727
require('express-jwt')({
28-
secret: 'shhhhhhared-secret'
28+
secret: 'shhhhhhared-secret',
29+
algorithms: ['HS256']
2930
})
3031
]
3132
}]

0 commit comments

Comments
 (0)