STOP making these Authentication mistakes in Next.js

Опубликовано: 25 Май 2026
на канале: Jan Marshal
8,063
369

Authentication is essential for any application, but here's the problem: it can make your website slow and insecure. Definitely not what you want, right? In this video, I’ll show you common authentication mistakes I frequently see in Next.js and how you can fix them.

🔒 Get started with Kinde: https://dub.sh/xeU8r3v


🚀 Checkout Cal for Free: https://dub.sh/FAuffAy
📸 Screen Recording Software: https://dub.sh/eDa47SO

👨‍💻 Git Repo: https://github.com/ski043/auth-mistakes
🌍 My Website: https://janmarshal.com/
✅ Follow me on X: https://x.com/janmarshaldev
📧 Business ONLY: [email protected]

Timestamps:
00:00 Intro
00:50 Project Overview
01:22 Implement Authentication
05:02 Layout Auth - slow & insecure
08:22 Individual page auth - slow
09:50 Middleware Auth - fix
13:15 Static content is not preserved
17:14 Leaking Data (React Taint API)
20:10 Public Endpoints
23:00 Close Proximity Auth Cheks
27:00 Multi-layered Auth