cornpopguy
cornpopguy9mo ago

Is it possible to automatically sync auth identity without webhooks

Is it possible to automatically sync auth identity without webhooks for Clerk? Like listen for some events on Auth Identity changes or are webhooks the only option?
4 Replies
Michal Srb
Michal Srb9mo ago
You can sync from the client: https://docs.convex.dev/auth/database-auth
Storing Users in the Convex Database | Convex Developer Hub
You might want to store user information directly in your Convex database, for
cornpopguy
cornpopguyOP9mo ago
This doesn't auto-delete the user from the database right?
Michal Srb
Michal Srb9mo ago
It does not. If you don't use the UserButton from Clerk the user will not have a way to delete their account, unless you implement it in your UI, at which point you can implement the user deletion as well. Or you can use UserButton from Clerk and implement their webhooks.
cornpopguy
cornpopguyOP9mo ago
Yes, I use the UserProfile from Clerk.

Did you find this page helpful?