Localstorage Memes

Posts tagged with Localstorage

Seniors Am I Doing This Correctly

Seniors Am I Doing This Correctly
Junior dev commits what looks like a security audit's worst nightmare directly to staging. We've got hardcoded API keys with "sk-proj" prefixes (looking at you, OpenAI), admin passwords literally set to "admin123", MongoDB connection strings with credentials in plain text, AWS secrets just vibing in variables, and a Stripe key that's probably already been scraped by seventeen bots. But wait, there's more! They're storing passwords in localStorage (chef's kiss for XSS attacks), setting global window credentials, fetching from a URL literally called "malicious-site.com", and my personal favorite - trying to parse "not valid json {{(" because why not test your error handling in production? The loop creating 10,000 arrays of 1,000 elements each is just the performance cherry on top of this security disaster sundae. Someone's about to learn why we have .env files, code reviews, and why the senior dev is now stress-eating in the corner.

Security? We Store That In Local Storage Too

Security? We Store That In Local Storage Too
When your SaaS business is running on a shoestring budget, but security is just a suggestion! Nothing says "enterprise-grade" like storing your entire user authentication data in the browser's local storage where anyone with F12 and 3 brain cells can access it. Firebase auth tokens just chilling in plain sight like they're sunbathing on a public beach. Password security? More like "password suggestion." Who needs proper backend authentication when you can just hope nobody knows how to open dev tools? This is what happens when "move fast and break things" meets "I learned coding from a $12.99 Udemy course that was 80% off."

The Cookie Conundrum

The Cookie Conundrum
The eternal web development paradox: a site proudly announces it "doesn't use cookies" while clearly failing to remember you already dismissed this notification. Nothing says "we respect your privacy" quite like forcing you to click the same damn button every time you visit. Somewhere, a frontend developer is laughing maniacally while deliberately not implementing localStorage either.