Skip to content

[firebase_auth] inconsistency in reporting user metadata #440

Description

@kroikie

The firebase user data that I get from FirebaseAuth.instance.currentUser() is inconsistent. Here is the result that I get:

{
  "android": {
    "uid": "ZyGkKQalyleXQiNqDyNMjlk8E4U2",
    "isAnonymous": false,
    "phoneNumber": "+498531790054",
    "providerData": [
      {
        "uid": "ZyGkKQalyleXQiNqDyNMjlk8E4U2",
        "phoneNumber": "+498531790054",
        "providerId": "firebase",
        "displayName": "Răzvan Lung"
      }
    ],
    "providerId": "firebase",
    "displayName": "Răzvan Lung",
    "creationTimestamp": 1550206057352,
    "lastSignInTimestamp": 1550206057352,
    "isEmailVerified": false
  },
  "ios": {
    "uid": "ZyGkKQalyleXQiNqDyNMjlk8E4U2",
    "isAnonymous": false,
    "phoneNumber": "+498531790054",
    "providerData": [
      {
        "email": null,
        "providerId": "phone",
        "photoUrl": null,
        "displayName": null,
        "uid": null,
        "phoneNumber": "+498531790054"
      }
    ],
    "providerId": "Firebase",
    "displayName": "Răzvan Lung",
    "email": "email@gmail.com",
    "photoUrl": null,
    "lastSignInTimestamp": 1550207896,
    "creationTimestamp": 1550206057,
    "isEmailVerified": false
  }
}

The timestamps are a big issue. Also on android the provider is different.

Activity

  1. kroikie commented on Oct 13, 2019

    @kroikie
    ContributorAuthor

    @long1eu

    The issue at flutter/flutter#27986 has been closed and moved here. Future collaboration on this issue will be done here.

  2. iapicca commented on Oct 22, 2019

    @iapicca

    Hi @long1eu
    I see the merged PR ,
    may I close this issue?
    Thank you

  3. long1eu commented on Oct 22, 2019

    @long1eu
    Contributor
  4. iapicca commented on Nov 20, 2019

    @iapicca

    thanks @long1eu

  5. locked and limited conversation to collaborators on Aug 17, 2020
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

    blocked: customer-responseWaiting for customer response, e.g. more information was requested.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions