I wrote a rule which works.
The rule adds an app_metadata node to the user object. When I log in to the Auth0 management UI, navigate to Users and click Raw JSON, I see the data.
I am using the SPA SDK, latest version. My code logs in correctly. Calls getUser. I can see the other object in the debugger. I don’t see the app_metadata object.
I read this post
Is it not possible to simply read the entire user object from the SPA SDK?
Is the only way to see user_metadata or app_metadata to copy it in a ruile by storing it through context.idToken["somestring’]?
If so, what is the point of the app_metadata and user_metadata properties?
Are they only for the Management API and not the SPA SDK?