mardi 30 janvier 2018

How To Use Vuejs With Nodejs Express and Mongodb for a login and signup app

How will i use passport and jwt token to achieve this all the while but its not working

router.post('/login' , 
  passport.authenticate('local' , {
  failureRedirect: "/sss",
  // failureFlash:true
  }),function(req,res){
  res.send({
  status: true,
  messasge: "Login Succesful" + user,

 });


});




Aucun commentaire:

Enregistrer un commentaire