- Follow the steps to configure an Auth0 Single-Page Application (SPA) in https://auth0.com/docs/quickstart/spa/react/01-login#configure-auth0
- Follow the steps to create an API in https://auth0.com/docs/quickstart/spa/react/02-calling-an-api#create-an-api
- Add a permission to your API of
read:users
following the steps in https://auth0.com/docs/dashboard/guides/apis/add-permissions-apis