There's no need to utilize local storage for storing data. With proper authentication in place, you can simply store your token in a session cookie and fetch all necessary information from the server when needed.
Keeping client-side saved data to a minimum is advisable. By storing only the token in a cookie, you can retrieve other details like usernames from the server upon initial page load. These retrieved values can then be stored in JavaScript variables, which are cleared on page reloads, necessitating a fresh retrieval from the server.
In cases of single-page applications, reloads should be rare or unnecessary altogether, ensuring a smooth user experience.