Beyond the Usual, Passive DEI Efforts in Tech

Blog: Authentication with MongoDB, Node.js + Passport.js

Manny Becerra as a child

May 2016

This will be a short one: authenticating with MongoDB, Node.js and Passport.js is pretty easy-to-setup and it lends itself to a scalable pathway.

You can have a pretty solid, reliable user authentication system that leverages various 3rd-party OAuth services, like GitHub, Twitter and Facebook, in a matter of hours or days (depending on how complex you want, or need, to get upfront).


Updates: Additional OAuth services added to authentication demo - LinkedIn (2017), GitHub (2019).

I've already set up an authentication service with this tech stack on my site as a proof-of-concept for a project we're exploring at work. While the demo currently doesn't do much after logging on other than the ability to authenticate with multiple OAuth 2.0-based services, the foundation is in-place to get more creative over time.

If you're already using Node.js and need to create some custom authentication system for your next project, wrap it up with MongoDB and Passport.js—I think you'll like it!

Until next time,

Manny Becerra as a child

I operate from a place of compassion, possibility and imagination. My work and efforts share a common goal: create a better, sustainable and equitable world by building inclusive communities, products & experiences.