Question · NestJS course · Module 4: Authentication

Local Strategy in Passport

What does the validate() method in LocalStrategy do?

Answer options

  • Creates a new user
  • Verifies the user's username and password
  • Generates a JWT token
  • Encrypts data transmitted over the network

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