Hey all -
I successfully set up my Angular SPA with Auth0 but I’m having trouble retrieving the “given_name” or any properties from the user object in order to display it in the profile page or use it in the navbar. How would I retrieve those values?
After login in to my app, I can see the following under the profile page:
{
"given_name": "XXX",
"family_name": "XXX",
"nickname": "XXX",
"name": "XXX XXX",
"picture": "XX",
"locale": "en",
"updated_at": "2020-03-29T22:52:33.377Z",
"email": "XXX@gmail.com",
"email_verified": true,
"sub": "XXX"
}
And I have this under the profile.component.html:
<pre *ngIf="auth.userProfile$ | async as profile ">
{{ profile | json }}
</pre>
Any help would be appreciated it! Thanks!