Put in order · NestJS course · Module 4: Authentication

Login process with JWT

Order the steps of the login process using JWT

Items to put in order

  • Client attaches the token to the Authorization header
  • Client sends username and password
  • Server generates a JWT token with user data
  • Server decodes the token and authorizes the request
  • Server verifies the credentials in the database

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