Question · NestJS course · Module 4: Authentication

JWT Payload contents

What does the Payload section of a JWT token contain?

Answer options

  • The encryption algorithm and token type
  • User data (claims) such as ID, role, and expiration time
  • A digital signature ensuring authenticity
  • A private key for decoding the token

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