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

preview_player
Показать описание


⭐ Become a full-stack web dev with Zero To Mastery Courses:

👇 Follow Me On Social Media:

(00:00) Intro
(00:05) Welcome
(00:28) CodiumAI
(04:20) Auth Route Handler
(05:49) NextAuth options
(10:13) NEXTAUTH_SECRET
(11:52) Setting up GitHub OAuth
(16:09) Configuring Providers in options
(23:08) Send a GET request to /api/auth/providers
(25:06) App Behavior for 3 different server pages
(26:27) Apply NextAuth with Middleware
(29:10) 3 Different Protection Approaches
(31:14) NextAuth with Client Components
(39:26) Wrap-up

📚 Tutorial References:

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

It's a bit late to comment, but congratulations Dave on getting sponsors for your videos (this is the first one I've come across)
There are plenty of amazing tutorial creators on YouTube, but the amount of effort you put in your videos to explain each and every line of code, right down to mentioning the key binds you use, is just remarkable. Thank you for all your effort and I hope you gain even more success

hamzahahmad
Автор

Hallelujah, thanks to let the people know what dependencies and versions you are using it, it helps so much man!

GuiKT
Автор

Hey Dave, after migrating from the pages router this tut helped me a lot on getting clear. There are a lot of tutorials out there and huge codebases with complex integrations and a lot of copy paste code, sometimes a bit hard to stay focused on the essentials.

Greeting from Austria <3

alexanderhenting
Автор

Thank you Dave. You have the heart to teach and help people who are trying their best to learn how to code .

Leesdjo
Автор

Thank you Dave. This was very helpful. You made things crystal clear to understand and implement the next-auth with next 13.2 + version. Also when to use server and client component. Overall you made it very simple.

vishwanathsinha
Автор

Hey dave when i started this job i used to watch your videos now i got my first job as a developer thanks man!

Selimdede-jrbv
Автор

Thank you Dave. I was having so much trouble trying to figure out how this was supposed to work. But after watching your video, the pattern became stupid simple. subscribed and looking forward to your content.

andrewahlstrom
Автор

Thanks Dave. Crystal clear step by step instructions on next auth. Now we have a deep understanding of how to configure and setup next auth in our projects. One suggestion a quick diagram of how the auth flow should be even more awesome!! Thank you for delivering quality content for us. Learning a lot from your videos.😊

joemathan
Автор

A very nice nuanced explanaton of Next-Auth. Yes please, I would like to see follow on tutorials on role-based access as you mention at the end

nademkhan
Автор

For those having problems with the App Router and middleware, I moved the middleware file inside the app folder, and worked

alessandrosalzo
Автор

You make the best tutorials man, seriously thank you so much.

jior
Автор

I was making my website today and you uploaded this today saved many hours of work❤❤

Evil_E_ye
Автор

This is a very packed information and I really understand every bit of it, I was in another tutorial before the guy was explaining it but it was very hard to get . Immediately I came here it just clicked ❤

judevector
Автор

Damn, this tutorial is god tier comparing to other ones I found that tackle this topic. Detail all in the right places!

zilvinas
Автор

Thank you dear Dave, for always inspiring me to put my best foot forward, even when I don't feel like I belong.
I hope the best for you in your life.
Warm Regards.

PaarsahSoroury
Автор

A very informative video. Thank you very much. Your code is perfect and very easy to read. And I would be glad to see more about role-based user authorization.

XCodeWhisperer
Автор

Thank you so much for explaining everything beautifully Dave.

Rikimkigsck
Автор

Your tutorials are the best Dave. I got a job because of you. I thoroughly improved my projects because of your tutorials.

spiderwebbs
Автор

This is long awaited video. Thank you Dave, you helped me so much

DanielMolnar_Tuzla
Автор

Very beautifully explained as usual. I would love to see more next auth tutorials!

karendoran