Add Social Authentication

Authentication is one of the major components of any application. At the same time, authentication is a complicated system because there are many things involved.

šŸ‘®ā€ā™‚ļø We need to do this carefully since this is a commonplace for security-related vulnerabilities.

For Next.js, we have many options for authentication. We could use:

  • Firebase
  • Auth0
  • Passport.js based system
  • NextAuth
  • MagicLink
  • A Custom Setup

In this lesson, we are using NextAuth to add auth support for our app. It's one of the simplest ways to add Auth setup for any Next.js app. But it is also very flexible and has built-in support for many social login providers & databases.

But at the end of this course, we will also look at how to use Firebase & Auth0 with this app.

šŸ™ We need your help

We need your help to keep maintain & add new content to this course. Here's how you can support us: