auth0-react-samples
auth0-react-samples copied to clipboard
Add examples of how `scope` affects the `accessToken` and show examples of the content of tokens
To demonstrate how scope affects tokens, and to use the example to see how a tenant Rule/Action might affect scopes and/or claims, this PR introduces examples of the Auth0 accessToken object, its decoded version, and ID Token claims in the Profile.js file. The purpose of this addition is to provide a clearer understanding of how these objects and claims are structured and can be used in the application.
Changes include:
- Added an example of an
accessTokenobject from Auth0 - Included a decoded version of the
accessTokenobject to show the readable format - Provided examples of ID Token claims to illustrate what information can be extracted from the token