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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *