Question · NestJS course · Module 4: Authentication

'sub' field in JWT payload

What does the 'sub' (subject) field in JWT payload mean?

Answer options

  • The user's subscription
  • The user's identifier (e.g., database ID)
  • The server's subdomain
  • The subaccount type

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