- SDK: auth0-react
- SDK Version: 1.8.0
- Platform Version: Node 16.13.1
My very simple goal is to push role information onto a user, then use that role information in my app. I was able to accomplish the first step. I now see assigned roles when I log the user object.
How do I now check the user roles? The array containing the roles seems to have an inaccessible namespace. What do I need to do programmatically determine, “Is the user in X role?” What roles is Y user assigned?