YoVDO

Create Your Own Auth with Cookie Sessions in Next.js Using Server Actions

Offered By: Lama Dev via YouTube

Tags

Next.js Courses Server Actions Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to implement cookie-based authentication and authorization in Next.js 14 using iron-session and server actions. Explore the creation of pages in the App Router, set up iron-session for secure cookie management, and implement server actions for login and logout functionality. Discover techniques for retrieving and updating user sessions, protecting routes, and handling form errors with the useFormState hook. Master the process of securing premium content and updating user sessions on each request to enhance your Next.js application's security and user management capabilities.

Syllabus

Introduction
Creating Pages in App Router
Next.js 14 Iron-Session Tutorial
Cookie Session Auth Server Actions
How to Get User Session in Next.js?
Next.js Cookie Session Login with Server Actions
Next.js Cookie Session Logout with Server Actions
Next.js Server Actions Show The Form Error with useFormState Hook
Next.js Protected Routes with Cookie Session
How to Update the User Session in Next.js?
Protect the Premium Page in Next.js
Update the User Session on Each Request in Next.js
Outro


Taught by

Lama Dev

Related Courses

Build a Full Stack Twitter clone with Next.js
Coursera Project Network via Coursera
Next JS with React Hooks - Building SSR React Applications
Udemy
End to End React with Prisma 2
Udemy
Build a Server Rendered Website with Next.js
Coursera Project Network via Coursera
Next.js 14 & React - The Complete Guide
Udemy