-
Notifications
You must be signed in to change notification settings - Fork 512
Description
Version
I'm using the entire project with the backend and frontend from the github repository
Test Case
full-stack-with-react-and-spring-boot project backend & frontend clone
Steps to reproduce
-Get logged in
-List todos page
-Check that jwt is being sending into the request as typically
-Refresh the page (CTRL+R or F5)
-Check that jwt is no longer being sent in the request
Expected Behavior
Persist the token header configuration that was set in axios.interceptors.request after every event as refresh page.
Actual Behavior
The axios.interceptos.request configuration is getting cleared after refreshing the page so, the request(GET, POST, DELETE) that works with the auth token will not work anymore.
Is there anyway to persist the token auth? or keep the axios.interceptors?