Question · NestJS course · Module 4: Authentication

JWT_SECRET key requirements

Which of the following practices is MOST IMPORTANT when creating a JWT_SECRET key?

Answer options

  • Using different keys for development and production
  • Adding the key to the project's README file
  • The key must be long and random (at least 32 characters)
  • Storing the key in a variable named KLUCZ_JWT

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