maybe convex didn't create my user table
maybe convex didn't create my user table before? that doesn't really show me why my users record wasn't created for the first user created but the betterAuth one was
1 Reply
When Better Auth creates a user, it will first run anonCreateUser hook where you will create your user and return the id. Better Auth then creates it's own user record and sets a relation to the provided id.You have an
onCreateUser()
hook in your code (the setup guide walks you through that part), that hook creates a user record and returns the id. Better Auth creates it's user and sets that id as the userId
field.