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?
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();
how can i catch the exception?