jwt-node-express icon indicating copy to clipboard operation
jwt-node-express copied to clipboard

app is not defined

Open asvsfs opened this issue 10 years ago • 1 comments

in jwtauth.js , app is not defind

line 29

var decoded = jwt.decode(token, app.get('jwtTokenSecret'))

asvsfs avatar Jan 20 '15 14:01 asvsfs

Add req before app.get. This way:

var decoded = jwt.decode(token, req.app.get('superSecret'))

pleasezoomout avatar Jul 25 '16 23:07 pleasezoomout