Question · NestJS course · Module 4: Authentication

signOptions in JWT

What does the expiresIn field in the JWT signOptions configuration specify?

Answer options

  • The time after which the session expires in the database
  • The lifetime of the JWT token (e.g., '24h' means 24 hours)
  • The maximum time to wait for a server response
  • The time after which the page should be refreshed

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