How to receive a JWT token in the body of an API response from a server and save it on the user with javascript and react-18?
enter image description hereI have a mongo DB server which an API set up when you input a proper username and password it sends a JWT access token in the body of the response as shown in the picture it works. (takes an email and password to verify)