I just deleted 1,740 lines of code. The auth still works. Actually, it works better now. Here's t...I just deleted 1,740 lines of code. The auth still works. Actually, it works better now. Here's t...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
I just deleted 1,740 lines of code. The auth still works. Actually, it works better now. Here's the thing: I was verifying JWT tokens in two places. Frontend middleware doing crypto checks, then the backend doing the exact same thing again. The frontend can't be trusted anyway. It just needs to know one thing: "Is this token expired?" for routing. The backend handles real security when API calls happen. What changed: 110-line middleware → 25 lines 5 auth docs explaining complexity → 0 2 duplicate token endpoints → 1 clean pattern Same security. 10x clearer. Faster page loads. The most satisfying code you'll ever write is the code you delete.
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started