Skip to content

Trying to login with google and facebook #11

Description

@innerk

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions