Set up Next-Auth with Next.js and Prisma with this ultimate guide!
This is the ULTIMATE guide for setting up Next Auth with the credential provider and Prisma. Check out my other video for setting up Prisma and then dive in to hook it all up.
Learn how to protect routes, get session information, and configure everything so you can fully use Next Auth.
ALL IN THE APP DIRECTORY!
Let’s go!
🔖 Chapters 🔖
00:00 – Intro
01:18 – Overview and Install
02:10 – Set up Next Auth Route
06:55 – Get Session Data
14:22 – Connect with Prisma
17:40 – Authorize function with Prisma
23:46 – Update session JWT with new data
33:22 – Protected Routes
41:55 – Outro
📜 Code 📜
• https://github.com/ethanmick/next-auth-with-prisma
📚 Resources 📚
• Setup Prisma: https://youtu.be/_ER9jHiylAo
• Next.js API Routes: https://youtu.be/9sIE7txjY-Y
🔗 Links 🔗
• Next.js: https://nextjs.org/
• Next Auth: https://next-auth.js.org/
• Prisma: https://www.prisma.io/
👨🏼💻 About Me 👨🏼💻
I am a principal software engineer and architect who loves building cool cloud software.
• Blog: https://ethanmick.com/
• Hire Me: https://ethanmick.dev/