Next.js 14+ Authentication with Clerk and How to Connect Clerk Users with Mongo Database
Vložit
- čas přidán 17. 06. 2024
- Learn about configuring next.js 14 project with clerk auth and create models, server actions, webhooks to create user data in mongodb when user is created in clerk dashboard with the help of web hooks.
#nextjs14 #authentication #mongodb #clerk
00:05 Overview
02:45 Configure Mongodb
07:15 Connect to Mongodb
12:30 Create User modal
15:10 Create User Server Action
17:55 Create web hook api
20:25 Configure Clerk web hook
22:05 Deploy App
24:10 Add web hook event
27:00 Create User in Mongodb with Web hook
33:15 Testing
Follow Whatsapp Channel:
whatsapp.com/channel/0029Va7y...
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
Contact us for development services:
/ umair-jameel-24aa5368
Reference Link:
clerk.com/docs/integrations/w...
Github Repo:
github.com/umairjameel321/nex...
Thanks for the last miniute to show the process of seeing log ⚙⚙
you sabe my live. Greetings from Brazil
Too Underrated !!😶🌫
If working with Mongodb and Nextjs,I think NextAuth is the best ❤
life saving
thnx brother
bro many things have changed authmiddleware is depreciated can u do another viedi on clerk setup
Sure, I will
@@ProgrammingwithUmair321 Yeah, I'm really waiting for another video about setting up the new version of the clerk! love your videos, Umair!
please do it ASAP🙏
@@AnandSingh-cl4cx
Here is an alternate video i watched for clerk setup
serach for
hamed bahram next js clerk 2.0
Please also include deployment on vercel usually i have a lot of issues regarding next auth and clerk.
I'm not sure what's wrong, the database is being inputted in the mongodb but not the files like
clerkId etc.. it's just an empty database
Please do another video with Clerk as it outdated and it would not work properly with webhooks
I will create it in few days
not working in clerk v5
I have a doubt please reply me:
Module '"@clerk/nextjs"' has no exported member 'clerkClient'
How can I resolve this
you can use '@clerk/nextjs/server' to import it.
My are failed am not sure why
I just wasted my time following the steps of this guy, for everyone who watches this video you have to know that the version of Clerk was updated so this no longer works
Then how can we do it. Do you have any other methods. Am stuck in this step for an application of mine
me too :
Is is not possible to do this without deploying the project?
U can use localtunnel for testing purpose