Gnomis
Gnomis2w ago

[ConvexAuth] Doc<'users'> don't update from default authTables

I have extended the users table in my schema to include more attribute required for my project. However, when I want to get the type from Doc, it believes my users table is the one from authTables, and not my updated version.
5 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
lee
lee2w ago
Can you share that part of your schema? Ref https://labs.convex.dev/auth/setup/schema
Customizing Schema - Convex Auth
Authentication library for your Convex backend
Gnomis
GnomisOP2w ago
Here you go. Also added a component getting sent a user as props. For the record, the code works, but ts don't think so
No description
No description
lee
lee2w ago
Oh you're importing Doc from convex-auth instead of _generated/dataModel
Gnomis
GnomisOP2w ago
Oh, my bad. Thank you!

Did you find this page helpful?