Log in from a computer to take this course

You'll need to log in from a computer to start User Authentication & Authorization in Express. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

Passport.js is a flexible authentication middleware for Node.js that can be added to any Express-based application. With Passport.js we can implement authentication using the concept of strategies.

Passport strategies are separate modules created to work with different means of authentication. Passport is a very extensible middleware, and it allows you to plug in over 300 different authentication providers like Facebook, Twitter, Google, and more.

In order to offer Passport-supported authentication, we’ll need to install and configure the strategies modules that we’d like to use. In this lesson, we’ll be focusing on a local Passport strategy, passport-local, and authenticating users using a username and password.

We can take a look at the diagram to get an understanding of the authentication flow through Passport.js, and we’ll go more in-depth as to how each step works in the following exercises.

Instructions

Press “Next” to move on to the next exercise!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?