signUp() - how to show that user already exists

I am using supabase.auth.signUp() with email and password.

When the user is registered properly and awaiting email confirmation I get data = undefined and supabase.auth.user() :>> null, but...

When the user is already existing I got exactly the same response from the supabase.js.
How to distinguish?

thanks in advance
g.
Was this page helpful?