After learning a little bit about how to start, integrate with MongoDB using Mongoose and how to test a NodeJS-Express application, it’s time to hide some functionality from unauthenticated users. I will skip the option now to build a basic authentication from scratch and will look into PassportJS instead. In this post I will add a simple local password authentication to the example NodeJS project, where the credentials are stored in a MongoDB database.

Tagged with