Biondi Bagasta Wiko Putra
11/23/2021, 2:42 AMdart
Future<dynamic> signUp(String email, String password) async {
isLoading(true);
final res = await _supabase.auth.signUp(email, password); // res.data always null in
if(res.error != null) { // If there are a error, it wasn't null
isLoading(false);
errorSnackbar(res.error!.message);
} else {
isLoading(false);
successSnackbar('REGISTER', 'Successfully Registered to the system. Please check your email for the next step.');
}
return res.data; // ALWAYS NULL in here
}