Next.js: Authentication (Best Practices for Server Components, Actions, Middleware)

Опубликовано: 04 Октябрь 2024
на канале: Delba
111,300
5.5k

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