Put in order · NestJS course · Module 4: Authentication

express-session configuration in NestJS

Arrange the steps of configuring session-based auth in NestJS:

Items to put in order

  • Use the @Session() decorator in the controller
  • Install express-session and @types/express-session
  • Choose a session store (memory, Redis, MongoDB)
  • Configure session middleware in main.ts

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