DEV Community

Discussion on: Please Stop Using Local Storage

Collapse
 
omarel profile image
Omar Elbaga

If you don't recommend storing a token in local storage because of security what makes it ok to store the session id of a cookie in local storage? No matter how you slice it, something sensitive has to be stored on the client side to authenticate itself to a server or backend api which still seems to be the example in the article.