© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
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)
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.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Is there a way to enforce 2-factor authentication for Pro plans?
SupabaseSSupabase / help-and-questions
6mo ago
Is there a way to query for id by email on supabase auth table?
SupabaseSSupabase / help-and-questions
4y ago
How to enforce MFA for all users?
SupabaseSSupabase / help-and-questions
3y ago
is there a way to mask the oauth url
SupabaseSSupabase / help-and-questions
4y ago