auth0-react-samples icon indicating copy to clipboard operation
auth0-react-samples copied to clipboard

Add examples of how `scope` affects the `accessToken` and show examples of the content of tokens

Open dominicfallows opened this issue 1 year ago • 0 comments

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 accessToken object from Auth0
  • Included a decoded version of the accessToken object to show the readable format
  • Provided examples of ID Token claims to illustrate what information can be extracted from the token

dominicfallows avatar Feb 08 '24 08:02 dominicfallows