How to use @auth0/auth0-spa-js to grab custom attributes added to profile via federated Fetch User Profile Script

@auth0/auth0-spa-js”: “^1.14.0”,

  • Platform Version: Node 14.16

When I use auth0Client.GetUser(), User attributes that we added via the “Fetch User Profile Script” do not appear in the returned User object.

Is there a way we can retrieve ‘Identity Provider Attributes’ using the spa-js SDK?

Hey there!

A few words of clarification. If you use auth0Client.GetUser() method you should be able to retrieve following properties of the User object:

https://auth0.github.io/auth0-spa-js/classes/user.html

not sure if you made some typing mistake but you shouldn’t have been able to add something with fetch script