I can’t solve this problem with Supabase and Flutter.
I sign up a user using the Supabase Flutter package :
await Supabase.instance.client.auth.signUp(
email: email,
password: password)
The email is confirmed, and the user shows up correctly in Supabase Auth with its ID. So far, everything is fine. But I'd like to handle the case where the user signs up with a already used email.
The problem is that when I call signUp with the same email again, it returns a new User object with a new ID with the same email address.
It should basically returns that the user or email is already existing ! Also, here's the Supabase Auth documentation regarding error codes : email_exists - Email address already exists in the system.
So this is the error.code that Supabase is supposed to return in my case, no ? What I am missing here ?