Set up Next-Auth with Next.js and Prisma with this ultimate guide!

preview_player
Показать описание
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 📜

📚 Resources 📚

🔗 Links 🔗

👨🏼‍💻 About Me 👨🏼‍💻
I am a principal software engineer and architect who loves building cool cloud software.

Рекомендации по теме
Комментарии
Автор

UPDATE You no longer need the cherry picked version! The latest version (4.22.0) now includes this code.

ethan_mick
Автор

Hands down the best auth video about next and next-auth I've ever seen. You've got a new subscriber. Thank you so much!

shockgalaxy
Автор

Been looking for something like this for some time now, I'm glad I found you since this really explains everything I needed in great detail. Thank you :)

dawidu
Автор

I really like how you breakdown a complex concept in a step by step format. Especially the part where you talk about the three different ways of getting session data and their respective use case. It’s very clear and informative. Instant sub for me right there

baybay
Автор

Legendary mate, just finished up this one and your explanations are flawless as usual, can't wait to get onto the next one! This content is golden.

Mantenner
Автор

If I start doing tutorials you’re the exact person I would be looking to emulate. GREAT job!

cb
Автор

The way you are explaining everything is top notch, best tutorial I've found on YouTube, of course I've subbed!

TheGaoNan
Автор

Really well thought out and well explained tutorial Ethan. Really helped with my understanding with setting up Next-Auth with the latest versions of Next :)

levantos
Автор

This is a great tutorial! You seem like a natural teacher and Youtuber, please keep them coming.

fujisan
Автор

This was a really comprehensive video on everything you need to get next auth set up. We're doing exactly the same thing in our enterprise SaaS. Currently exploring the new @auth package which next-auth is moving to, would be great to see you do an update video on this one with the new auth beta package (if you already haven't).

dwolrdcojp
Автор

Thank you very much Ethan. I really like your fast forward pace. Much much appreciated <3

muhammadisa
Автор

This tutorial was on another level of prepared/concise. I like the showing multiple ways to do do protected routes, and the error notice related to loading bcrypt in the client bundle.

PM-
Автор

Thank you! This was an awesome tutorial. Keep 'em coming! 👍

bogdan.c
Автор

I'm looking for this video for several days, Thanks a lot!

tepeqmo
Автор

Thank's for this explicit tutorial !

alariclg
Автор

I got phenomenal value out of this video ! Thank you, Ethan.

younesalturkey
Автор

Thanks for the video! It was really helpful! 😀

francogalfras
Автор

In this week, I have been struggling to learn auth with next-auth and prisma. This has been super helpful, thanks a lot!

amirhosseinshahabnia
Автор

You are my Angel man ! Thanks for this excellent explaination, was stuck like 4 days with NextAuth but this video resolved my problem in just 40 minutes. Thanks thanks !

ignacioportigliatti
Автор

there we go! thank you so much for this! u are amazing

marcelo-k