Redirecting to previous page after authentication in node.js using passport.js

前端 未结 7 1182
悲&欢浪女
悲&欢浪女 2020-11-30 17:13

I\'m trying to establish a login mechanism using node.js, express and passport.js. The Login itself works quite nice, also sessions are stored nicely with redis but I do hav

相关标签:
7条回答
  • 2020-11-30 17:59

    Easiest (and properly) way to achieve this is setting failureRedirect and successRedirect options.

    0 讨论(0)
提交回复
热议问题