SupabaseS
Supabase4y ago
arzy

is there a way to not enforce uniqueness of email id for oauth users?

Trying to allow users to connect with multiple oauth providers at the same time but when there are accounts with the same email address, supabase will not let them connect because the email address already exists with a different oauth provider. Error message is: ERROR: duplicate key value violates unique constraint "users_email_key" (SQLSTATE 23505)

We are just trying to get allow the user to connect with both twitter and discord at the same time. Looking at github discussions, it seems that a user should be able to do this if their emails are the same but it seems to be the opposite for us.
Was this page helpful?