Skip to content

[firebase_auth] inconsistency in reporting user metadata #27986

@long1eu

Description

@long1eu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: firebaseFirebase pluginsp: firebase_authThe Firebase Auth pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyplatform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions