next recipes
3 tested next integration recipes with Zod, react, next-auth, bcryptjs. Exact pinned versions and a last-passed receipt, last run 2026-10-15.
passed3/3typescript
Next.js 16 App Router route handler + Zod validation
Validate JSON bodies and search params in a Next.js App Router route handler with Zod, returning typed 400s; tested by calling the handler with NextRequest.
next@16.4.1zod@4.6.7react@19.3.1
last passed 2026-10-15 14:15 UTC
passed3/3typescript
Next.js 16 server actions + Zod with useActionState-shaped results
A 'use server' form action that validates FormData with Zod and returns field errors in the shape useActionState expects, tested by calling the action directly.
next@16.4.1zod@4.6.7react@19.3.1
last passed 2026-10-15 14:15 UTC
passed4/4typescript
NextAuth.js v4 credentials provider + JWT/session callbacks (mocked)
NextAuth v4 authOptions for Next.js with a Credentials provider, bcrypt-checked users and role claims flowing through jwt and session callbacks, unit-tested without a server.
next-auth@4.24.15next@16.4.1react@19.3.1
last passed 2026-10-15 14:15 UTC