I tried adding the email address as a custom claim according to Guide: Migrate your custom Rules to Auth0 Actions, but that did not work. I believe I am hitting this same issue described here.
My SPA uses the Auth0 SPA library to do authentication. That library provides an access token for API calls to my backend. This access token does not seem to contain the custom claim (email address).
I do not want to do a call to auth0 from my backend every time an api endpoint on my backend is called as that is not scalable. What is the appropriate method of obtaining the email address of a user on my backend?