Hi, not really an issue, more of a conceptional question.
I’m building a small (HEADLESS!!) API with a couple of routes which are protected by an Auth0-middleware. So far so good, the actual authentication seems to work. Without a valid user / token it’s not possible to login.
There are various parts within that small API where I want to access various user-properties, e.g. the user metadata or at least his name. So I wanted to include a retrieval of that data in the middleware as well.
Unfortunately I wasn’t able to find anything in the PHP SDK. The only thing I found was the $auth0->getUser() method which uses some kind of session-based handling. Since I’m building a stateless REST-API this is not really an option. So, I was looking for a way to use the JWT-Token to fetch user data.
Besides the permission scopes I was not able to get anything else. Is there any way of achieving that without having to use the management API?