DEV Community

Next.js 16 Auth: From Broken to Production-Safe Series' Articles

Back to Shubhra Pokhariya's Series
I Thought My Next.js 16 Auth Was Solid. One Afternoon Proved Otherwise.
Cover image for I Thought My Next.js 16 Auth Was Solid. One Afternoon Proved Otherwise.

Transition from middleware to proxy.ts

I Thought My Next.js 16 Auth Was Solid. One Afternoon Proved Otherwise.

30
Comments 24
7 min read
I Got the proxy.ts Matcher Wrong for Three Projects Before I Understood Why
Cover image for I Got the proxy.ts Matcher Wrong for Three Projects Before I Understood Why

Security risks in the middleware to proxy shift

I Got the proxy.ts Matcher Wrong for Three Projects Before I Understood Why

44
Comments 17
9 min read
Next.js 16 Server Actions Security: The Auth Check Most Developers Miss
Cover image for Next.js 16 Server Actions Security: The Auth Check Most Developers Miss

Actions as public API endpoints

Next.js 16 Server Actions Security: The Auth Check Most Developers Miss

30
Comments 19
8 min read
My Next.js 16 Auth Passed Every Test. Five Bugs That Only Showed Up When I Wired It Together.
Cover image for My Next.js 16 Auth Passed Every Test. Five Bugs That Only Showed Up When I Wired It Together.

Route Handler and browser cookie quirks

My Next.js 16 Auth Passed Every Test. Five Bugs That Only Showed Up When I Wired It Together.

36
Comments 39
9 min read
Your Auth Check Passed. The Agent Still Did Something Nobody Asked For
Cover image for Your Auth Check Passed. The Agent Still Did Something Nobody Asked For

Explores a real builder's messy trial and error

Your Auth Check Passed. The Agent Still Did Something Nobody Asked For

24
Comments 26
11 min read