Тёмный

Next Auth v5 Complete Guide in Next.js 15 with Prisma and MongoDB 

Programming with Umair
Подписаться 8 тыс.
Просмотров 13 тыс.
50% 1

Let's learn about next-auth v5 for complete authentication and authorization in next.js 15 using app directory structure. It includes installing required packages, configure auth.js v5 along with prisma orm, connect mongodb, setting up app layout, implement login, signup, login with github and finally, protecting routes using server components, middleware's and protecting api routes.
00:05 Demo
02:15 Create Next.js project
05:00 Install required packages
06:45 Configure Auth.js v5 in Next.js
12:45 Configure Prisma
19:15 Configure mongodb url
22:40 Generate prisma schema for mongodb
24:00 Configure GitHub login
26:35 App layout and manage sessions
35:30 Login page UI
39:00 login logout server actions
46:13 Testing login with GitHub
49:50 Protecting routes
57:10 Protecting apis
59:55 Build login page form
01:06:50 login with credentials server action
01:11:45 Credentials provider in auth.js v5
01:13:55 hash password
01:15:30 User registration
01:17:20 Update User schema
01:18:55 Final testing
#nextjs14 #nextjs15 #authjsv5
Follow Whatsapp Channel:
whatsapp.com/c...
React tutorials:
• React.js Tutorials
JavaScript Tutorials and Projects:
• JavaScript Tutorial an...
Angular Tutorials:
• Angular 16 Life Cycle ...
Docker Tutorials & CI/CD:
• Docker Tutorials & CI/CD
Angular 16 Crash Course For Beginners:
• Angular 16 Crash Course
Tech Tutorials - Random:
• Postman Tutorial - Tes...
Complete Next.js 13 Tutorials: • Next.js 13 Tutorials -...
Next.js 14 Tutorials:
• Next.js 14 Tutorials -...
Node Express MongoDB Bootcamp: • Build REST API with No...
ChatGPT Tutorials: • ChatGPT
Join our facebook group:
/ 996305460498149
Github Repo (Give it a Star):
github.com/uma...
Contact us for development services:
/ umair-jameel-24aa5368

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@Parvez-vb4sb
@Parvez-vb4sb 2 месяца назад
00:05 Demo 02:15 Create Next.js project 05:00 Install required packages 06:45 Configure Auth.js v5 in Next.js 12:45 Configure Prisma 19:15 Configure mongodb url 22:40 Generate prisma schema for mongodb 24:00 Configure GitHub login 26:35 App layout and manage sessions 35:30 Login page UI 39:00 login logout server actions 46:13 Testing login with GitHub 49:50 Protecting routes 57:10 Protecting apis 59:55 Build login page form 01:06:50 login with credentials server action 01:11:45 Credentials provider in auth.js v5 01:13:55 hash password 01:15:30 User registration 01:17:20 Update User schema 01:18:55 Final testing
@c0d3mav3rick
@c0d3mav3rick 2 месяца назад
Thanks Umair. I was dealing with `signIn` issue for while. I was debugging since yesterday and not getting output. I was keep getting `NEXT_DIRECT` error but after using that switch case in auth.ts, it's working like charm. Keep posting 🚀
@iAmUmair05
@iAmUmair05 3 месяца назад
All video of this playlist is worth to watch...pure quality content
@regilearn2138
@regilearn2138 3 месяца назад
Appreciate you for this, What is the best practice for frontend if we use micro service for backend, Micro frontend or any other would appreciate if you can teach us microfrontend with react MERN.
@FaridAhmadNoori-qn3cv
@FaridAhmadNoori-qn3cv Месяц назад
till 1 hour the video was good after that you copy paste all the credential's and you say that you modified it idk what happened!
@redbeardjunior
@redbeardjunior Месяц назад
I have a question ! if we change the prisma schema or anything else after we are done ! is there a need to rerun the npx prisma generate & npx prisma db push ?
@leroylusenaka46
@leroylusenaka46 Месяц назад
Good video .. how about a sign up form ?
@ProgrammingwithUmair321
@ProgrammingwithUmair321 Месяц назад
User automatically get created in db while using signin form if it is not already created. So in single step form, we are handling signup and signin. This flow is being followed by many now a days.
@syedbilalchand1766
@syedbilalchand1766 3 месяца назад
Please make a video on access token and refresh token with auth js
@alamjamal4011
@alamjamal4011 3 месяца назад
i am also waiting
@coinvest0
@coinvest0 Месяц назад
Why use typescript if your code is full of any type?
@33prathameshpatil67
@33prathameshpatil67 3 месяца назад
Getting error on handler : { GET , POST } How can i solve it
@juliusgrisette
@juliusgrisette Месяц назад
I am getting the same error. The route.ts file in [...nextauth] is not letting me build
@flashbyte
@flashbyte Месяц назад
its not handler instead its handlers object
@codingwithgreat707
@codingwithgreat707 3 месяца назад
How can error be seen and handled in the login page?
@muhammadilham4986
@muhammadilham4986 2 месяца назад
Helpfully, thank you sir
@alexdin1565
@alexdin1565 3 месяца назад
please can you make login with facebook I searched on youtube but no one cover how we can login with facebook
@markosmk
@markosmk 3 месяца назад
Thanks! I think that dependencies mongodb and adapter/mongo are unnecessary because you are using prisma as orm
@Milad85-o9k
@Milad85-o9k 3 месяца назад
Fantastic video, please make a video for refresh token and access token with auth , thanks a million
@danymakhoul1332
@danymakhoul1332 Месяц назад
Why I get redirected to /api/auth/signin?callbackUrl=%2F whenever I want to sign in
@flashbyte
@flashbyte Месяц назад
I'm also curious to know that.
@yo1414
@yo1414 3 месяца назад
Awesome - yes, would love password reset via an email address :-)
@MUSASAEED-qu4yl
@MUSASAEED-qu4yl 3 месяца назад
GOOD WORK
@Grishopping
@Grishopping 3 месяца назад
turborepo + prisma +next + mongodb ?????????????
@umar3167
@umar3167 3 месяца назад
No sign up in this one ??
@ProgrammingwithUmair321
@ProgrammingwithUmair321 3 месяца назад
My implementation of login auto register (signup) user in db if it is not already registered.
@OmarTood
@OmarTood 3 месяца назад
Thanks brother
@QuangLeChau
@QuangLeChau 3 месяца назад
where is the source code??
@ProgrammingwithUmair321
@ProgrammingwithUmair321 3 месяца назад
Repo link is in description.
Далее
Cool Parenting Gadget Against Mosquitos! 🦟👶
00:21
Leaf Hangout!
1:20:00
Просмотров 52
So, you want to be a programmer?
20:43
Просмотров 346 тыс.
Next.js Server Actions...  5 awesome things you can do
7:51