Skip to content

Tag: express

User Authentication in Node.js (Part 2 of 2)

Part 1:¬†https://jayvolr.me/2017/08/23/user-authentication-in-node-js-part-1-of-2/ The first part of this two part series walked you through setting up the login functionality of an authentication strategy using Express, passport.js and MongoDB. In this second part, you’ll learn how to allow new users to create an account, how to securely store passwords, and how to use Redis to store sessions. I’ll also create a small notes application at the end to show off our authentication system in action. Registration We’ll…

User Authentication in Node.js (Part 1 of 2)

For me, learning to create my own user authentication functionality was a pivotal point in learning web development. It brought together so many things I had learned but hadn’t fully grasped how they might work together. Building an authentication system involves using a web framework, a database, a hashing function, an interface, user input, middleware, and more. Assuming you’re not new to Node, you’re probably familiar with a lot of the pieces, but maybe you…