B
LocalStorage and Cookie are a few different things. In the context of your question, you authorise a user by login-couple, and in the docks, you transmit a session whose lives until the browser(s) is closed or the timemaouth.Then you want your app to remind the users and not require them to install logina-cool at every launch. It's possible to keep some long-lived token in the cubes after a successful copying, but it's not good to go anywhere on every request.Accordingly, it should be kept somewhere and transmitted on request only when the session is outdated to make a new one. That's what LocalStorage is for. In it, you keep the token (in the very simplest case, you can even keep the login-cool, but it's not good at all), which is transmitted only for the initiation of the session. It's more like usual.