Sync Clerk Data to Your Database Using Webhooks

Опубликовано: 30 Сентябрь 2024
на канале: Hamed Bahram
49,992
1.9k

In this video, we'll examine how to sync user data from Clerk to our database using webhooks. We will use Prisma as our ORM to connect to Mongodb for end-to-end type safety.

👉🏼 Clerk Authentication
→ https://go.clerk.com/9AXfPV7

👉🏼 Learn Clerk
→ https://www.hamedbahram.io/courses

👉🏼 Clerk setup guide
→    • Clerk Keeps Getting Better | Core 2.0...  

👉🏼 Next–Clerk template
→ https://github.com/HamedBahram/next-c...

👉🏼 Project source code
→ https://github.com/HamedBahram/clerk-...

👉🏼 Work with me
→ https://www.hamedbahram.io/contact

Chapters
0:00 Intro
1:30 Project setup
3:45 Clerk webhooks
7:40 Using ngrok
9:30 Create an endpoint in Clerk
13:50 Add a route handler in NextJs
17:00 Setting up Prisma
21:00 Testing our webhook
24:38 Recap