© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
2 replies
phil

signInWithOAuth - differentiate sign in vs sign up?

I am allowing users to sign up and sign in with google.

supabase.auth.signInWithOAuth({
    provider: 'google',
});
supabase.auth.signInWithOAuth({
    provider: 'google',
});


Now I want to be able to differentiate a sign up vs a sign in. So the user needs to sign up with google before being able to sign in. Is that possible?

Right now
signInWithOAuth
signInWithOAuth
creates the user if it doesnt exist. But I don't want that to happen as i have 2 separate flows for sign up vs sign in.
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

Update scopes using signInWithOAuth?
SupabaseSSupabase / help-and-questions
12mo ago
Is there a way to differentiate between sign up and sign in when using third party SSO providers?
SupabaseSSupabase / help-and-questions
4y ago
Issue with signInWithOAuth() using multiple branches (prod vs staging)
SupabaseSSupabase / help-and-questions
5d ago
facebook signInWithOAuth help
SupabaseSSupabase / help-and-questions
5mo ago