Question · Next.js course · Module 7: Authentication and Authorization

Middleware in Next.js for auth can be used to:

Middleware in Next.js for auth can be used to:

Answer options

  • Protect routes from unauthorized access
  • Only CSS processing
  • Image optimization
  • Database migrations

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