Question · NestJS course · Module 4: Authentication

ignoreExpiration property in JWT

What does setting ignoreExpiration: false in the JwtStrategy configuration mean?

Answer options

  • The token never expires
  • Tokens that have exceeded their validity period will be automatically rejected
  • The token is automatically renewed
  • The expiration time is ignored during validation

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