Hello there, I’m new to all of this so please point me in the right direction if I’m lost.
I followed this tutorial for creating a react-app with Auth0, and everything seems to be running fine, but I am trying to get access to a user’s username and can’t seem to get it to work.
I created the Auth class and am using an instance of it as auth0Client as per the tutorial, and when I run auth0Client.getProfile() I can see the user’s name(email), nickname, picture, updated_at, and iss. How would I go about editing the code provided in this tutorial to also get the user’s username?
As for getting the username, as it is not directly part of the OIDC standard claims you will need to add it to the ID token using custom namespaced claims in a rule.