I’m trying to figure out how to load user profile data from a Node API. The request comes from an SPA (react) which uses Auth0 to authenticate users, passes along the bearer token to an API that uses that verifies that token and returns some data. The thing is, I need the API to load user profile data from Auth0 somehow. I thought I’d get some sort of obvious identifier in the bearer token sent by the SPA but I don’t see it. Then, when I try to use that token to fire off a call to the Auth0 server from said API, I get an Unauthorized response. Does anyone know of any sample code to get this done? The Auth0 docs (which are normally very easy and complete) have got me confused and nothing I’ve tried has worked.
Thank you for your help!