skip to Main Content

How to Handle Firebase Auth exceptions on flutter

I can't handle an error if the user tries to sign up using an already existing email Future _createUser(Users user, String name, x) async { UserCredential result = await FirebaseAuth.instance .createUserWithEmailAndPassword( email: _emailController.text.trim(), password: _passwordController.text.trim()); try { result; } on…

VIEW QUESTION
Back To Top
Search