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

YouTube

Next-Auth Login Authentication Tutorial with Next.js App Directory

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial shows how to add NextAuth login to a Next.js App Directory project using credentials or GitHub OAuth. It covers provider configuration and several ways to protect server pages and client components.

Syllabus

Intro
Welcome
CodiumAI
Create Next.js Project & Dependencies
NextAuth.js Introduction
Auth Route Handler
NextAuth options
NEXTAUTH_SECRET
Setting up GitHub OAuth
Configuring Providers in options
Send a GET request to /api/auth/providers
App Behavior for 3 different server pages
Apply NextAuth with Middleware
3 Different Protection Approaches
NextAuth with Client Components
Next.js Images from an OAuth Provider
Wrap-up

Taught by

Dave Gray

Reviews

Start your review of Next-Auth Login Authentication Tutorial with Next.js App Directory

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.