Hi, I am facing difficulty in making database from Clerk to Convex
Currently, I am developing the authentication. I have successfully created signIn, signOut on Clerk but I follow the instruction (https://docs.convex.dev/auth/database-auth#optional-users-table-schema) for webhook. When I sign in, the information just get connected to Clerk but not Convex database.
Here is my http.ts:
Storing Users in the Convex Database | Convex Developer Hub
_If you're using Convex Auth the user information
10 Replies
As I understand it, you're trying to set up Clerks webhooks in order to sync data into the Convex database.
What do your Clerk webhook logs say?
@LifeIsBoring In the Clerk dashboard, try deleting this user (or all users) so that you'll receive the WebHook events for creating a new user.
I have tried that but they usually gives me missing value for webhook. Do I need to initialize the form to be the same the form webhook have to store my needed data ?
I'm sorry I'm not sure what you're talking about. What's a missing value for a webhook, does the Clerk webhook not contain data you want? What does it mean to initialize a form? What is a form webhook?
@ballingt sorry Tom! Was at work when texted you. This is what I got in the log on dashboard convex.dev
and here is my upsertFromClerk
I wonder is there any solution to this ?
What does your schema look like for ‘users’ ?
@LifeIsBoring based in that error it looks like your validator is too strict! I'd relax your schema if you want to accept these.
Ah okay thanks I fixed it