Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to login with google and facebook #11

Open
innerk opened this issue Nov 5, 2019 · 2 comments
Open

Trying to login with google and facebook #11

innerk opened this issue Nov 5, 2019 · 2 comments

Comments

@innerk
Copy link

innerk commented Nov 5, 2019

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
Copy link
Member

Andrious commented Apr 3, 2020

Has this been resolved?

@innerk
Copy link
Author

innerk commented Apr 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants