Access User_Metadata in React?

Hi @athome176

Thanks for getting in touch with us at Auth0 Community.

To be able to access the user_metadata via the SDK I believe you’ll need to add the user_metadata to the users id_token first via a Post Login Action, you can learn about Actions here https://auth0.com/docs/customize/actions

For a more specific example you can review this community post https://community.auth0.com/t/need-help-on-getting-idtoken-user-metadata-with-react-auth0-sdk/80740

Hopefully this will help you.

Warm regards.

3 Likes