https://supabase.com/ logo
How to get the ID from registered used on signUp m...
# flutter
b
How to get the ID from registered used on signUp method in dart / Flutter???? My response.data is always getting null while in Javascript / Typescript, it was working perfectly :
Copy code
dart
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
  }