I am using auth0 in my express app. Each user has some attributes in user_metadata (I can see it in the user profile on the Auth0 UI), but there is no user_metadata key on the req.user object in express. How can I get serialize the user_metadata so I can access it from that req.user object?
Hi @mshenton75,
Welcome to the Community!
You can add custom claims to the token, including the user’s metadata claims. This should then be available in your app. Take a look at a sample here:
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.