Express Passport (node.js) error handling

前端 未结 3 1779
星月不相逢
星月不相逢 2020-12-07 07:19

I\'ve looked at how error handling should work in node via this question Error handling principles for Node.js + Express.js applications?, but I\'m not sure what passport\'s

3条回答
  •  离开以前
    2020-12-07 07:33

    You need to add req.logIn(function (err) { }); and do the success redirect inside the callback function

提交回复
热议问题