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
Welcome! I haven't seen this using Magic Link & OAuth, but haven't tried password.
@Michal Srb is this expected?
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
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.
Ah! not sure how I missed this! thanks @Michal Srb