Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserIdentity is Missing profileData #34

Closed
davidwarshaw opened this issue Mar 7, 2022 · 3 comments
Closed

UserIdentity is Missing profileData #34

davidwarshaw opened this issue Mar 7, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@davidwarshaw
Copy link
Contributor

Describe the problem

The field profileData is present in social User Identities (see below) and retrievable from the REST API, but is not in the UserIdentity struct. This means that this SDK cannot be used to retrieve social profile data.
Here's an example of the key within an account with two identities:

...
  "identities": [
    {
      "connection": "Initial-Connection",
      "user_id": "123xyz",
      "provider": "auth0",
      "isSocial": false
    },
    {
      "connection": "google-oauth2",
      "user_id": "abc123",
      "provider": "google-oauth2",
      "isSocial": true,
      "profileData": {
         "family_name": "some name",
         "picture": "https://cdn.googleusercontent.com/user/abc123"
      }
    }
  ],
...

What was the expected behavior?

The UserIdentity struct has the profileData field and data.

Environment

gopkg.in/auth0.v5 v5.21.1

@davidwarshaw davidwarshaw added the bug Something isn't working label Mar 7, 2022
@davidwarshaw
Copy link
Contributor Author

PR: #33

@davidwarshaw
Copy link
Contributor Author

cc @sergiughf

@sergiught
Copy link
Contributor

Closing this down as we merged #33. It will be available in the next release.

Thanks a lot @davidwarshaw and appreciate the patience with the review time! 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants