React and JWT
I'm used to the normal vanilla way of having a cookie go with every request and authenticated and a page is sent back...am using react how can this be achieved, if after a login I use Context API, even though my token is still in cookie the auth state defaults back to false after refresh, storing in local storage isn't advisable..my question is how can I achieve protected routes with react even after page refresh
0 Replies