Nodejs Do I need to use Passport

Viewed 1114

Alright, so I'm currently coding a Web Application with Node.js, and I'm a bit stuck on how I should handle user logins/authentication.

Lots of tutorials seem to recommend using Passport for your authentication, but from all the documentation I've read, it seems to take a bit of setting up and it complicates the simple login I was expecting.

Whether or not I use Passport, I still plan on hashing my user passwords that are stored in the Mongo database.

So the question is, do I need to use Passport for security reasons, or can I just code an authentication system my self?

2 Answers
Related