Next.js Discord

Discord Forum

Sync User from Clerk to DB

Unanswered
leraphymo posted this in #help-forum
Open in Discord
Hello, I would like to synchronize a user with the database. I use clerk for auth and prisma with a sqlite database for the example. If I understood correctly, it is enough to send the Clerk ID in the user table and then I can use this ID for all my requests? In this case, what is the best practice for this synchronization? Should I do it in Clerk middleware?

0 Replies