Creates a new user.
user
is returned but session
is null.user
and a session
are returned.SITE_URL
by default. You can modify your SITE_URL
or add additional redirect URLs in your project.User already registered
is returned.final AuthResponse res = await supabase.auth.signUp(
email: 'example@email.com',
password: 'example-password',
);
final Session? session = res.session;
final User? user = res.user;
final AuthResponse res = await supabase.auth.signUp(
email: 'example@email.com',
password: 'example-password',
data: \{'username': 'my_user_name'\},
);
final Session? session = res.session;
final User? user = res.user;
final AuthResponse res = await supabase.auth.signUp(
email: 'example@email.com',
password: 'example-password',
emailRedirectTo: 'com.supabase.myapp://callback',
);
final Session? session = res.session;
final User? user = res.user;