How would I go about implementing JWT in the front-end?

Viewed 24

I currently don't have any front-end.

Using Postman, I can login with username and password, and I will receive a JWT access token.

I can now access other parts of my application if I put that token in the authorization header.

How exactly would this work when I create the front-end of my application? In Postman I just take the access token and put it in "Bearer [token]" in the Authorisation header of the page I want to access, but obviously this would be done automatically. How?

0 Answers
Related