---
title: "Please Stop Using Local Storage"
url: https://daily.dev/posts/please-stop-using-local-storage-nvkjpsixv
source_url: https://dev.to/rdegges/please-stop-using-local-storage-1i04
type: article
source: "Community Picks"
published: 2022-08-29T08:42:50.586Z
updated: 2023-12-07T12:02:45.284Z
tags: ["security", "webdev", "javascript", "google", "storage", "authentication", "auth0"]
reading_time: 10
upvotes: 287
comments: 22
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Please Stop Using Local Storage

**[Community Picks](https://daily.dev/sources/community)** · 10 min read · 287 upvotes · 22 comments

## Summary

Local storage is just one big old JavaScript object that you can attach data to (or remove data from) Local storage provides at least 5MB of data storage across all major web browsers. This is a fairly low limit for people building apps that are data intensive or need to function offline. If the app you're using doesn't fit the above description: don't use local storage.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/rdegges/please-stop-using-local-storage-1i04>

## Community discussion

Top comments from developers on daily.dev.

**@paulknulst** · 41 upvotes

> I've read the article and is quite funny.
> But, the comment section is more informative than the whole article!
> Especially this: https://dev.to/jondubois/comment/373l
>
> And there is more important info. The article itself is okay but not 100% true. But with the comments, you will understand the problems. Tl;dr; choose wisely what to use, everything has security issues.

**@matteosacchetto** · 5 upvotes

> I think this article is missing one of the important part of a JWT, which is not having to hit a DB/Cache for each verification...
>
> I get that the author is concerned about security, but suggesting some "always"/"never" rule is not good in general
>
> Everything is always a trade of between security and performance and when choosing your strategy you need to put in place all the necessary steps to secure your solution, which means that if you opt for local storage, then put your focus in preventing XSS from happening

**@iaros** · 4 upvotes

> No

**@cloud11pl** · 3 upvotes

> I like how the comments roast the author

**@geobot** · 2 upvotes

> Please stop writing dumb posts

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#google](https://daily.dev/tags/google), [#storage](https://daily.dev/tags/storage), [#authentication](https://daily.dev/tags/authentication), [#auth0](https://daily.dev/tags/auth0)

[View this post on daily.dev](https://daily.dev/posts/please-stop-using-local-storage-nvkjpsixv)
