Skip to content

[Auth] Email & Name not being retrieved when using Apple Sign-In #2454

@miguelpruivo

Description

@miguelpruivo

Describe the bug
When using Apple Sign-In, the Apple credential has the user name and email, then, registering (or binding) the credential to Firebase using both idToken and authorizationToken, will result in the FirebaseUser not having neither displayName nor email associated.

To Reproduce
Steps to reproduce the behavior:

  1. Use either apple_sign_in or sign_in_with_apple to create a valid Apple sign-in;
  2. Create an AuthCredential using OAuthProvider getCredential() method;

Expected behavior
Expect the user to have name and email — doesn't happen.

Additional context
firebase_auth: 0.15.5+3

Flutter doctor
Run flutter doctor and paste the output below:

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E287,
    locale pt-PT)
    • Flutter version 1.12.13+hotfix.9 at /Users/miguelruivo/devtools/flutter
    • Framework revision f139b11009 (4 weeks ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.closed-by-botplatform: iosIssues / PRs which are specifically for iOS.plugin: authresolution: needs-reproThis issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.resolution: userThis was a user issue, e.g. invalid configuration or code.type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions