© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5w ago•
2 replies
sma

Detect user oauth provider when logging in

auth
Is there a way to detect the OAuth provider used based on an email before a user is signed in?

We currently support both email/password, and Google/Apple OAuth flows. If a user signs up with Google/Apple, and they try to log in to the same account using a password, it just shows a "invalid_credentials" error since they have no password associated with the account.

We want to detect that the OAuth provider that they originally used to sign up (Google/Apple) and show the correct provider UI for them.

Is this possible?
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

OAuth provider metadata documentation
SupabaseSSupabase / help-and-questions
4y ago
Logging in as / 'impersonating' user 🛂
SupabaseSSupabase / help-and-questions
2y ago
Azure OAuth - incorrect provider in app_metadata
SupabaseSSupabase / help-and-questions
14mo ago
How to secure provider_token, provider_refresh_token when using google oauth?
SupabaseSSupabase / help-and-questions
13mo ago