SupabaseS
Supabase2y ago
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',
});


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 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.
Was this page helpful?