LPLoknath Patelinloknath-codes.hashnode.dev·20h ago · 32 min readSession-Based Authentication in Node.js and TypeScript with HttpOnly Cookies and CSRF ProtectionMost authentication tutorials end at "the user is logged in". That is the easy part. The hard part is everything around it: where the password actually goes, where the session lives, what happens when00
LPLoknath Patelinloknath-codes.hashnode.dev·3d ago · 23 min readWhy Your Node.js API Is Slow in Production: 10 Mistakes That Pass Code ReviewSpot the bug in 10 seconds: const controller = new AbortController(); const timer = setTimeout(() => controller.abort(), 1000); const res = await fetch(url, { signal: controller.signal }); clearTimeo00
LPLoknath Patelinloknath-codes.hashnode.dev·4d ago · 9 min read7 Node.js Built-in Features That Can Replace npm PackagesFewer dependencies, faster installs, and less third-party code to trust. Every package you install is also a package you have to update, audit and trust, along with everything that package depends on.00
LPLoknath Patelinloknath-codes.hashnode.dev·4d ago · 11 min read10 Browser APIs That Can Replace npm Packages (and When They Can't)Many of us type npm install without thinking twice. But browsers keep adding built-in APIs that can handle tasks we once needed a package for. Sometimes, those packages stay in our projects simply bec00