title: authenticate user with mongoose + express.js
body: <p>What's the best way to authenticate a user with Mongoose and ExpreeJS.</p>
  
  <p>I'm using mongoose 3.x and it looks like this package isn't being updated anymore: <a href="https://github.com/bnoguchi/mongoose-auth" rel="nofollow">https://github.com/bnoguchi/mongoose-auth</a></p>
  
  <p>Ideally I could authenticate user with twitter and facebook too.</p>