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

freeCodeCamp

Next.js Authentication - AuthJS / NextAuth for Role-Based Security

via freeCodeCamp

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course demonstrates how to add authentication and page protection to a Next.js application using Auth.js/NextAuth. It covers OAuth providers, custom providers, user storage with MongoDB and Mongoose, and server-side, client-side, and middleware protection.

Syllabus

⌨️ Introduction
⌨️ Environment Setup / Extension Review
⌨️ Project Creation
⌨️ Install NextAuth Auth.js / Create Project Structure
⌨️ Create NextAuth Auth.js API - Options / Routes
⌨️ Setup built-in OAuth Provider - Google / GitHub
⌨️ Login / Logout Funtionality
⌨️ Protecting Pages - Server Side Page
⌨️ Protecting Pages - Client Side Page
⌨️ Protecting Pages - Middleware
⌨️ Creating Custom Provider Creating a Database of Users
⌨️ MongoDB Atlas Signup / Setup
⌨️ Create User Models Mongoose Schema
⌨️ User Form to Create Users
⌨️ Create Users API
⌨️ Setup Custom Provider

Taught by

freeCodeCamp.org

Reviews

Start your review of Next.js Authentication - AuthJS / NextAuth for Role-Based Security

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.