Answers for "passportjs mac req.user not saved"

0

passportjs mac req.user not saved

app.post('/login', passport.authenticate('local-login', { failureRedirect: '/login'}),
  function(req, res) {
     console.log(req.user);
     req.session.user = req.user;
     res.redirect('/users');
  }
);
Posted by: Guest on November-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language