Hello all. Maybe this is a beginner question but I’m really struggling to understand how can I read user_metadata after adding it from user management dashboard.
I am able to access default user_object properties such as family_name, nickname, name, etc, but not the ones I have added to the user_metadata field for each user.
What I would like to do is the following: after the login, the user has access to a profile page where he can see the default user object + user metadata. Then I would update user_metadata from the user management dashboard. Are there any tutorials or guides that can help me understand? Thank you very much.
I have this at the moment:
router.get('/', requiresAuth(), (req, res) => {
res.render('pages/homepage', {
title: 'some title',
isAuthenticated: req.oidc.isAuthenticated(),
user: req.oidc.user,
});
});
```