samtalksAI
samtalksAI5mo ago

Convex Auth - Duplicate users in users table

I am using both password based and google oauth in convex auth. Signing up (password) and signing in (google) using my email in both - it's creating two entries in the users table. the email is duplicate but the id is obviously different. how do I ensure the duplicacy doesn't happen? ideally if someone logs in though google, can the same record be updated with the password if they were to sign up later again! not sure how it works. New of web dev.
4 Replies
erquhart
erquhart5mo ago
Welcome! I haven't seen this using Magic Link & OAuth, but haven't tried password. @Michal Srb is this expected?
Michal Srb
Michal Srb5mo ago
It is expected. @samtalksAI have a read through https://labs.convex.dev/auth/advanced#account-linking
Advanced: Details - Convex Auth
Authentication library for your Convex backend
erquhart
erquhart5mo ago
That makes a lot of sense. The trusted/untrusted paradigm might be helpful as a note at the top of the Passwords config doc, so folks know what to expect if they choose not to verify email addresses.
samtalksAI
samtalksAIOP5mo ago
Ah! not sure how I missed this! thanks @Michal Srb

Did you find this page helpful?