NextJS 15 Authentication Tutorial - Learn Next-Auth in 30 Minutes

Опубликовано: 10 Январь 2025
на канале: PedroTech
2,492
192

Learn how to integrate NextAuth.js into a Next.js application in just a few simple steps. This video covers installation, provider setup (like GitHub OAuth) and session management.

Code: https://github.com/machadop1407/nextj...
Want to Support Me? https://buymeacoffee.com/pedrow

🚀 Learn ReactJS By Building 6 Projects: https://codedamn.com/learn/reactjs-pr...
🐙 GraphQL Course: https://codedamn.com/learn/graphql-fo...

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: https://www.pedrotech.co
Linkedin:   / machadop1407  
Instagram:   / pedro.fmachado_  
Github: https://github.com/machadop1407

Business Email: [email protected]

🌟 Gear / Hardware I Use and Recommend 🌟
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💻 https://amzn.to/42kqFuM 💻 Monitor
🖱️https://amzn.to/3C0ZhHb 🖱️ Mouse
📷 https://amzn.to/3OHJvbM 📷 My Camera
🎤 https://amzn.to/3oxSthj 🎤 My Microphone
⌨️ https://amzn.to/3oFPpj1 ⌨️ My Microphone
⚡ https://amzn.to/3MYMnzM ⚡ LED Lights In the Background

TIMESTAMPS
00:00 Introduction & Overview
00:14 Setting Up Next.js and NextAuth.js
01:15 Installing NextAuth.js and Environment Variables
02:50 Creating GitHub OAuth App
05:04 Configuring NextAuth.js for Authentication
08:02 Implementing Sign In and Sign Out Functionality
12:49 Accessing User Session Information
15:10 Creating Protected Routes with Middleware
18:15 Advanced Middleware Setup
25:00 Integrating Prisma as an Adapter
29:30 Conclusion & Next Steps

#reactjs #tutorial