© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
The Aleks

user_metadata is empty when when connecting OAuth with same email

So, I'm trying to connect discord users with our email based users in our own backend. In our case, we need to support both the case where the email is and isn't the same.

But, whenever I login with a user and subsequently login with a discord user with the same email user_metadata fails to update.
This means I won't have them in the access_token and therefore won't be able to pass the data to our backend in a trusted manner.

I've checked that the identity is saved properly in the identities table, so the data isn't missing. When I login again with discord, the data is synced correctly.

Any idea what might be the course of this?
Screen_Shot_2022-08-20_at_2.32.02_AM.png
Screen_Shot_2022-08-20_at_2.32.15_AM.png
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

user_metadata
SupabaseSSupabase / help-and-questions
4y ago
OAuth provider metadata documentation
SupabaseSSupabase / help-and-questions
4y ago
what metadata is for email auth
SupabaseSSupabase / help-and-questions
14mo ago
When signing up with the same email as an existing unconfirmed user, existing user returned?
SupabaseSSupabase / help-and-questions
3w ago