Put in order · Next.js course · Module 7: Authentication and Authorization

Stages of Adding Authentication to an Application

Arrange the stages of implementing authentication and authorization in a Next.js application:

Items to put in order

  • Choose a strategy (Session / JWT / OAuth)
  • Protect routes (middleware + roles)
  • Configure the provider in NextAuth
  • Define requirements (which login methods)
  • Audit authentication events

You can check the correct answer by solving this task in the CodeWorlds game.