Next.js: Authentication (Best Practices for Server Components, Actions, Middleware)
Delba Delba
15.6K subscribers
67,363 views
0

 Published On Jun 12, 2024

Best practices for authentication in Modern Next.js and React: Server Components, Server Actions, Middleware.

Docs: https://rc.nextjs.org/docs/app/buildi...
Code: https://github.com/vercel-labs/app-ro...

00:00 Intro
00:25 Forms and Server Actions
00:51 Form validation
01:06 useActionState
01:45 Creating a user
02:14 Session management
04:13 Authorization
04:37 Middleware
05:33 Data Access Layer
07:35 API Minimization
08:03 Data Transfer Objects
09:45 Server Actions
10:19 Conditional Rendering
10:50 Client Context Providers
11:14 Summary

show more

Share/Embed