how do i define a schema that links to a better auth component table user, id field ?
I want to do this:
but the convex better-auth component has its own scope and I cant seem to be able to link to it....
or is there a different syntax?
3 Replies
Use type string, and find the user by id using
getAnyUserById or something like that 😂Yeah id validation doesn't work across the component boundary, have to use
v.string() for ids written by a component.@erquhart need to add it to docs, and mention that we can use triggers to replicate the user to main db