Answers for "passport middleware check if authenticated"

0

passport middleware check if authenticated

//just for me lol
app.post("/login", passport.authenticate("local", {
	successRedirect: "/secret", 
	failureRedirect: "/login"
	}), function(req,res){
	//don't need to add anything
});
Posted by: Guest on July-12-2020

Code answers related to "passport middleware check if authenticated"

Code answers related to "Javascript"

Browse Popular Code Answers by Language