User gets "unauthenticated" after page reload.
Ive created a basic local auth implementation with a register route, login route and a user route. Everything in the backend looks to work fine, but when i reload the page, the user information gets deleted from localStorage.
How would i fix this ?
![No description](https://cdn.answeroverflow.com/1106520640774742096/image.png)
![No description](https://cdn.answeroverflow.com/1106520641097695302/image.png)
1 Reply
For whatever reason, the token expires right away