I have a set of web pages that makes use of some APIs that need JWT as a header for authentication. This JWT is generated after success login. What would be the most appropriate way of sending jwt from one page to another after a successful login?
You can use either of these to store JWTs:
As explained in this article store JWT in cookies for web applications, because of the additional security they provide.
What would be the most appropriate way of sending jwt from one page to another after a successful login?
Retrieve token from cookie/web storage in another page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With