AndriousSolutions / auth

Other
47 stars 14 forks source link

Trying to login with google and facebook #11

Open innerk opened 4 years ago

innerk commented 4 years ago

hi i'm new to flutter, when i try to login with google everything okay but if i try login with the same email on facebook this error appear "ERROR_ACCOUNT_EXISTS_WITH_DIFFERENT_CREDENTIAL" on the debug console but i cannot catch the error or the exception on ths part:

`auth.signInWithFacebook().then(signInFunc).catchError((err,stackTrace) { auth.currentUser();

                                  debugPrint(err);

                                    print('error caught: $err');
                                 // if (err is! Exception) err = err.toString();
                                  //errorMessage = auth.message;
                                });`

how can i catch the exception?

Andrious commented 4 years ago

Has this been resolved?

innerk commented 4 years ago

Hi @Andrious no, still don't, do you have an example on this? how to catch the error? that would be really helpful