guides
guides copied to clipboard
Authentication with mongoose and passport
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