the front end of a recent development project is built using react.
encountered a problem is that I don"t know how to log in with the background Synchronize.
my logic is like this. After the user logs in successfully, I use localstorage to store the relevant information of the user, and then store the login status of the user as true,
but there is a problem. When the server is forced to restart, the login status of the server is gone, but the login status of the user is still stored in the localstorage of the client as true.
I would like to ask you how to deal with the Synchronize login status of the front and back end when using the react framework for development