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
@c0d3mav3rick3 ай бұрын
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 🚀
@iAmUmair054 ай бұрын
All video of this playlist is worth to watch...pure quality content
@IgordeLoyola2 күн бұрын
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'.
@lexsemenenko16 күн бұрын
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?
@lexsemenenko16 күн бұрын
I used Vercel's Postgres that uses Neon basically. I had to follow the docs and initiate Prisma Client using @prisma/adapter-neon..
@FaridAhmadNoori-qn3cv2 ай бұрын
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!
@regilearn21384 ай бұрын
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.
@redbeardjunior2 ай бұрын
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 ?
@hvwong204414 күн бұрын
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.
@syedbilalchand17664 ай бұрын
Please make a video on access token and refresh token with auth js
@alamjamal40114 ай бұрын
i am also waiting
@Milad85-o9k4 ай бұрын
Fantastic video, please make a video for refresh token and access token with auth , thanks a million
@hvwong204417 күн бұрын
Thanks ! appreaciate if can have next video about reset password .
@33prathameshpatil674 ай бұрын
Getting error on handler : { GET , POST } How can i solve it
@juliusgrisette2 ай бұрын
I am getting the same error. The route.ts file in [...nextauth] is not letting me build
@flashbyte2 ай бұрын
its not handler instead its handlers object
@codingwithgreat7074 ай бұрын
How can error be seen and handled in the login page?
@locsta26217 күн бұрын
u save my day thank u
@yo14144 ай бұрын
Awesome - yes, would love password reset via an email address :-)
@muhammadilham49863 ай бұрын
Helpfully, thank you sir
@leroylusenaka462 ай бұрын
Good video .. how about a sign up form ?
@ProgrammingwithUmair3212 ай бұрын
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.
@danymakhoul13322 ай бұрын
Why I get redirected to /api/auth/signin?callbackUrl=%2F whenever I want to sign in
@flashbyte2 ай бұрын
I'm also curious to know that.
@Yui1is-e3x4 күн бұрын
me too, i dont know what to do now.
@alexdin15654 ай бұрын
please can you make login with facebook I searched on youtube but no one cover how we can login with facebook
@umar31674 ай бұрын
No sign up in this one ??
@ProgrammingwithUmair3214 ай бұрын
My implementation of login auto register (signup) user in db if it is not already registered.
@MUSASAEED-qu4yl4 ай бұрын
GOOD WORK
@OmarTood4 ай бұрын
Thanks brother
@markosmk4 ай бұрын
Thanks! I think that dependencies mongodb and adapter/mongo are unnecessary because you are using prisma as orm
@coinvest02 ай бұрын
Why use typescript if your code is full of any type?