Skip to content

Trying to login with google and facebook #11

@innerk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions