goth icon indicating copy to clipboard operation
goth copied to clipboard

Auth0 provider doesn't attribute all the values to goth.User

Open justman00 opened this issue 4 years ago • 0 comments

Hey,

so I noticed that Auth0 is sending some more data back, e.g:

{
        "email": "[email protected]",
        "email_verified": true,
        "family_name": "Example",
        "given_name": "Example",
        "locale": "en",
        "name": "Example Example",
        "nickname": "example.example",
        "picture": "<picture url>",
        "sub": "google id or other provider id",
        "updated_at": "2021-10-21T08:52:15.784Z"
    }

but the provider seems to be reading only these values:

type auth0UserResp struct  {
	Name      string `json:"name"`
	NickName  string `json:"nickname"`
	Email     string `json:"email"`
	UserID    string `json:"sub"`
	AvatarURL string `json:"picture"`
}

I want to know if other values, such as family_name or given_name are not parsed on purpose because they can be left empty by Auth0 or if it was just overlooked?

justman00 avatar Oct 21 '21 09:10 justman00