Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Protect Server Actions in Next.js the Right Way

ByteGrad via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to properly secure server actions in Next.js applications through a comprehensive 13-minute tutorial covering essential security practices. Explore the latest Next.js 15 updates for server actions before diving into four critical protection strategies. Master data validation techniques to ensure input integrity, then implement the useActionState hook for better state management. Understand how to properly handle authentication to verify user identity and implement authorization controls to manage user permissions. Discover how to integrate Arcjet for advanced security features including sensitive information protection, shield functionality against malicious requests, bot detection and prevention, and rate limiting to prevent abuse. Follow along with practical demonstrations and code examples that show real-world implementation of each security measure, ensuring your Next.js server actions are protected against common vulnerabilities and attacks.

Syllabus

00:00 Server actions demo
02:52 Next.js 15 update for server actions
03:35 #1 Data validation
05:27 useActionState
05:59 #2 Authentication
07:54 #3 Authorization
09:06 #4 Arcjet
09:50 Arcjet - Sensitive information
10:56 Arcjet - Shield
11:19 Arcjet - Bots
11:33 Arcjet - Rate limiting

Taught by

ByteGrad

Reviews

Start your review of Protect Server Actions in Next.js the Right Way

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.