passport.authenticate('local'), giving jwt is not defined

后端 未结 0 788
野趣味
野趣味 2020-12-08 00:47

I am trying to use passport.authenticate(\'local\') like this

 exports.doLogin = (req, res) => {
    console.log(req.body);
    if (!req.body.username) {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题