Creates a new user.
SignUp() returns a Session. Inspect Session.User to determine the outcome; an empty Session.User.Identities list indicates the account already existed.Session.User.ConfirmedAt is null and Session.User.ConfirmationSentAt is set) and the client is not signed in.Session is adopted as the current session, and a SignedIn state change fires.SITE_URL by default. You can modify your SITE_URL or add additional redirect URLs in your project.SignUp() is called for an existing confirmed user, GoTrue avoids revealing that the account exists, so the outcome depends on your project's settings:
Session is returned whose Session.User.Identities list is empty (an obfuscated user; no new account was created).GotrueException with the message User already registered is thrown.var session = await supabase.Auth.SignUp(email, password);