Sessions management

Stay logged in on page refresh, with use of `window.localStorage`.