Fullstack Authentication & Authorization in Next.js using NextAuth V5 (Auth.js), Zod, Shadcn UI

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

I have also talked about Zod and Shadcn. Zod for data validation and schema structre and Shadcn for UI components.

I have also explained roles based access control.

I have explained both credentials auth and social auth / oauth. I have also explained some of the useful cases that you would encounter when you will be working with next-auth.

For e.g.

How do you implement role based access control?

Thank you :)

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

thank you so much for the video...i am sure no one has explained the AuthJs this good under an hour..

NarendraKumar-tcbm
Автор

The most satisfying video I found for the next auth 🎉

uditmehra
Автор

The way you explained is very simple and easy to understand. Keep making such informative videos👍

rashitiwari
Автор

Hi, thank you so much for the video. One thing is missing here, if you want, you can split the video on different sections to be easy to follow and switch between sections.

eduardlucaci
Автор

You have explained it very well, I liked it and understood it completely.

shubhamsoni
Автор

This is the best explaination that i found till now regarding the auth v5

RupakGoura
Автор

Hey man! I just want to thank you with all my heart and I am truly grateful to you for this wonderful tutorial. You won't believe the amount of trouble I had been having since the last couple of days trying to figure out how Auth Js works and how to make it work properly with social login. Even when I could, I was unable to understand how to make it work for getting extra information in the session, specifically the id.

In one single tutorial you have covered everything and not only did you deliver what was promised, your tutorial's quality was exceptional! I had a lot of fun following along your video and it cleared all my doubts!

I have liked and subscribed as a show of support and thanking you for your contributions, please keep uploading more great content in the future! I would love to have a detailed in-depth video on Prisma and Auth JS

anishpal
Автор

Videos are extremely helpful. Efforts are appreciated.

PritamChakroborty-fehv
Автор

This is a really informative video. Thank you!

fullHulk
Автор

Really great video - thank you. Definitely do the registration flow too.

iainattwater
Автор

Very well explained.👍 Looking forward for User Registration video and session based auth as well. Love you content and the way of explanation. Keep it up.

reni_christian
Автор

6:30 if you have issues importing @auth, do not forget to setup alias inside tsconfig.json, something like: "@/auth": ["./src/auth.ts"] in case your project was by default setup to use src folder... adding that should fix the import

UnchartedWorlds
Автор

You have a very outstanding way of delivering your tutorials, I hope you tackle next time an actual sign-in where we are checking a real database if the user exists. Thank you very much man.

markdioneeb
Автор

Brother don't give up! 🙌 You will be on the day at the top 🌟 because your content is high quality plus simple to understand! 📈

SirajAhmed-kzgq
Автор

Man this is what I wanted. What a lovely explaination. Each and everything is clear and to the point as well. Thank you. 1 question. so instead of using the callback we can use middleware to restrict admin or user from specific pages?

memester
Автор

good one. you can also make small video on how we can fetch user from database using prisma instead of hardcoding may be in seperate video

ajinkyabendre
Автор

Aditya, it would be super helpful when we follow along if your code doesn't use such high spacing between lines, it's hard to catch all the code when lots of it is out of the view and when you scroll super fast to next step. Just a suggestion :) I enjoy your tutorials so far, recent subscriber :)

UnchartedWorlds
Автор

Great video and well explained. hope you can create user registration video as well

dulansandaruwan
Автор

Best tutorial for every developers. thank you dude, just pin me.

TechKaj
Автор

Love the video my man. First video that explains subject easly in understandable way! I have only one issue with this code, for some reason in auth.ts callback authorized dosent seams to work for me, I can freely access /page2 without being even logged in. Do you have any ideas why that could be happening? Adding random console logs for debugging perps shows no activity in authorized callbacks

miszka_