guides icon indicating copy to clipboard operation
guides copied to clipboard

Authentication with mongoose and passport

Open mabelleeyanhwa opened this issue 5 years ago • 0 comments
trafficstars

session #2: mongoose + passport + passport-jwt code-along: https://github.com/thoughtworks-jumpstart/express-auth-demo delta from the previous session. we're going to add: User mongoose model Use passport.js as a authentication middleware what is passport.js. go through docs passport.js strategies (jwt) configuring passport #1: choosing a strategy + specifying options configuring passport #2: adding a middleware to protect routes walk through demo POST /signup User model, salt and hash walk through POST /signin walk through GET /secret

https://www.comp.nus.edu.sg/~mahongq/CS2107.pdf

mabelleeyanhwa avatar Dec 02 '19 02:12 mabelleeyanhwa