When implementing JWT, where is the token commonly stored for subsequent requests?
- In a cookie
- In a URL query parameter
- In a request header
- In a hidden form field
In JWT (JSON Web Tokens), the token is commonly stored in a request header, specifically in the Authorization header using the Bearer scheme. This method is considered secure and widely adopted. Storing the token in a cookie or URL query parameter can have security risks.
Loading...
Related Quiz
- You are developing a critical system where the cost of failure is very high. How would you design your testing strategy to ensure the reliability and stability of the system?
- How can optimizing database queries significantly reduce the response time of an application?
- In a NoSQL database like MongoDB, how are schemas defined and enforced?
- The process.env object in Node.js contains the ________ variables of the environment where the Node.js process is executed.
- The global object in Node.js is similar to the ______ object in client-side JavaScript.