Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
}); 
 
PREVIOUS NEXT
Tagged: #passport #middleware #check #authenticated
ADD COMMENT
Topic
Name
6+6 =