📜  护照中间件检查是否经过身份验证 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:51.648000             🧑  作者: Mango

代码示例1
//just for me lol
app.post("/login", passport.authenticate("local", {
    successRedirect: "/secret", 
    failureRedirect: "/login"
    }), function(req,res){
    //don't need to add anything
});