Hi,
I have an app calling my expressJs server where all the auth0 token verification code is.
I am pretty much looking and trying to use the concept defined.
https://github.com/auth0-samples/auth0-angular-samples/blob/master/03-Calling-an-API/server.js
Though the verification succeeds, my next step is to get the user profile info. This is using the access_token
and the opaque way of verifying.
I can see on using the following code
app.get('/api/private', checkJwt, checkScopes, function(req, res) { res.json({ message: req.user }); });
req.user prints out the decoded token but it is lacking the userinfo.
How do I know the userinfo at the backend. I would like to store a few properties for a user in the backend and make it available when user logins. What’s the best way?
Thanks,
Sharad