When the user reloads the page all state is reset so they either see a blank page or are redirected back to the login, the application needs to "remember" where they are but remain secure.
Perhaps the state could be stored in local storage and a request sent to the backend to verify the user.
When the user reloads the page all state is reset so they either see a blank page or are redirected back to the login, the application needs to "remember" where they are but remain secure.
Perhaps the state could be stored in local storage and a request sent to the backend to verify the user.