//protection API and Authentication JWT middleware
const expressJwt = require('express-jwt')
function authJwt() {
const secret = process.env.secret;
function expressJwt(param) {
return undefined;
}
have the same problem
return expressJwt({
secret,
algorithms: ['HS256']
})
}
module.exports = authJwt;
2条答案
按热度按时间uhry853o1#
试试看:
Official docs
rxztt3cl2#