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

  Рет қаралды 16,163

Programming with Umair

Programming with Umair

Күн бұрын

Пікірлер: 38
@Parvez-vb4sb
@Parvez-vb4sb 3 ай бұрын
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 3 ай бұрын
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 4 ай бұрын
All video of this playlist is worth to watch...pure quality content
@IgordeLoyola
@IgordeLoyola 2 күн бұрын
Hello, I found a mistake in your README... change 'npx prisms db push' to 'npx prisma db push'... there is an 's' instead of an 'a'.
@lexsemenenko
@lexsemenenko 16 күн бұрын
How nobody has this issue? PrismaClient is not configured to run in Edge Runtime. So when I get session - session = await auth(); I get that Prisma Client cannot run on Edge. any help?
@lexsemenenko
@lexsemenenko 16 күн бұрын
I used Vercel's Postgres that uses Neon basically. I had to follow the docs and initiate Prisma Client using @prisma/adapter-neon..
@FaridAhmadNoori-qn3cv
@FaridAhmadNoori-qn3cv 2 ай бұрын
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!
@regilearn2138
@regilearn2138 4 ай бұрын
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.
@redbeardjunior
@redbeardjunior 2 ай бұрын
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 ?
@hvwong2044
@hvwong2044 14 күн бұрын
try to deploy to vercel , but as long as i have the middleware.ts file in root folder i got error: Cross-reference between Middleware and Edge Function. if i delete the middleware.ts, is ok.
@syedbilalchand1766
@syedbilalchand1766 4 ай бұрын
Please make a video on access token and refresh token with auth js
@alamjamal4011
@alamjamal4011 4 ай бұрын
i am also waiting
@Milad85-o9k
@Milad85-o9k 4 ай бұрын
Fantastic video, please make a video for refresh token and access token with auth , thanks a million
@hvwong2044
@hvwong2044 17 күн бұрын
Thanks ! appreaciate if can have next video about reset password .
@33prathameshpatil67
@33prathameshpatil67 4 ай бұрын
Getting error on handler : { GET , POST } How can i solve it
@juliusgrisette
@juliusgrisette 2 ай бұрын
I am getting the same error. The route.ts file in [...nextauth] is not letting me build
@flashbyte
@flashbyte 2 ай бұрын
its not handler instead its handlers object
@codingwithgreat707
@codingwithgreat707 4 ай бұрын
How can error be seen and handled in the login page?
@locsta262
@locsta262 17 күн бұрын
u save my day thank u
@yo1414
@yo1414 4 ай бұрын
Awesome - yes, would love password reset via an email address :-)
@muhammadilham4986
@muhammadilham4986 3 ай бұрын
Helpfully, thank you sir
@leroylusenaka46
@leroylusenaka46 2 ай бұрын
Good video .. how about a sign up form ?
@ProgrammingwithUmair321
@ProgrammingwithUmair321 2 ай бұрын
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.
@danymakhoul1332
@danymakhoul1332 2 ай бұрын
Why I get redirected to /api/auth/signin?callbackUrl=%2F whenever I want to sign in
@flashbyte
@flashbyte 2 ай бұрын
I'm also curious to know that.
@Yui1is-e3x
@Yui1is-e3x 4 күн бұрын
me too, i dont know what to do now.
@alexdin1565
@alexdin1565 4 ай бұрын
please can you make login with facebook I searched on youtube but no one cover how we can login with facebook
@umar3167
@umar3167 4 ай бұрын
No sign up in this one ??
@ProgrammingwithUmair321
@ProgrammingwithUmair321 4 ай бұрын
My implementation of login auto register (signup) user in db if it is not already registered.
@MUSASAEED-qu4yl
@MUSASAEED-qu4yl 4 ай бұрын
GOOD WORK
@OmarTood
@OmarTood 4 ай бұрын
Thanks brother
@markosmk
@markosmk 4 ай бұрын
Thanks! I think that dependencies mongodb and adapter/mongo are unnecessary because you are using prisma as orm
@coinvest0
@coinvest0 2 ай бұрын
Why use typescript if your code is full of any type?
@Grishopping
@Grishopping 4 ай бұрын
turborepo + prisma +next + mongodb ?????????????
@antagonist6966
@antagonist6966 21 күн бұрын
its the same bro
@Grishopping
@Grishopping 18 күн бұрын
@@antagonist6966 turborepo ?????
@QuangLeChau
@QuangLeChau 4 ай бұрын
where is the source code??
@ProgrammingwithUmair321
@ProgrammingwithUmair321 4 ай бұрын
Repo link is in description.
Build Tour Guide in Next.js 15 and React.js | react-joyride
53:39
Programming with Umair
Рет қаралды 2,4 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,2 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 99 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,1 МЛН
Authentication Flow in Next.js (Complete Tutorial)
30:37
Cosden Solutions
Рет қаралды 19 М.
Introduction to Authentication with Auth.js, Nextjs, Postgresql
39:36
Njoku Samson Ebere
Рет қаралды 1,7 М.
Self-Hosting Next.js
45:13
leerob
Рет қаралды 66 М.
Set up Next-Auth with Next.js and Prisma with this ultimate guide!
42:45
Build SaaS with Ethan
Рет қаралды 56 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,2 МЛН