Skip to content

Commit c5275b3

Browse files
committed
updating express-jwt config
1 parent 5afad84 commit c5275b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demos/basic.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)