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