MENU

Fun & Interesting

Sync Clerk Data to Your Database Using Webhooks

Hamed Bahram 58,395 11 months ago
Video Not Working? Fix It Now

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 → https://youtu.be/aI-tDJxWI6A ?? Next–Clerk template → https://github.com/HamedBahram/next-clerk ?? Project source code → https://github.com/HamedBahram/clerk-webhooks ?? 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

Comment