In JWT, what part of the token is responsible for holding the user's information?
- Payload
- Header
- Signature
- Claims
In JWT (JSON Web Tokens), the user's information is typically held in the Payload. The Payload contains claims, which are statements about an entity (typically, the user) and additional data. The Header contains metadata, and the Signature is used for verification.
Loading...
Related Quiz
- Which of the following is a primary use case for stubbing in tests?
- How can you use the fs module to copy a file from one location to another?
- What command will uninstall a Node.js package?
- How can you create an object in JavaScript that does not inherit the prototype from Object?
- Which method can be used to add new elements to an array in JavaScript?