'Auth0 get users not returning all data

I have an application that uses Auth0 for auth/authz. The frontend is Vue.js and the backend is Node.js. I am tryng to have it so that the frontend will call some endpoints during the setup phase then it will call my backend to get the user's meta data. I so far can get the setup right and the meta data saved (checked via UI) however the final call to get the user's metadata isn't returning the meta data I need (user_metadata).

Below is my options for my axios request to get the meta data. Below that is the result from the fetching of the metadata with some stuff removed like IP and emails.

Axios options

const get_user_options = {
  method: 'GET',
  url: `https://${domain}/api/v2/users/${auth0_user_id}`,
  headers: {
      authorization: `Bearer ${token}`,
     'content-type': 'application/json'
  },
}

Results


{
  created_at: '2022-02-04T17:19:22.456Z',
  email: '<an email>',
  email_verified: false,
  identities: [
    {
      connection: 'Username-Password-Authentication',
      provider: 'auth0',
      user_id: '<>',
      isSocial: false
    }
  ],
  name: 'Admin 8',
  nickname: 'me8',
  picture: 'https://s.gravatar.com/avatar/9757598208a8ca467592abeec77734c4?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fjo.png',
  updated_at: '2022-02-04T17:19:34.864Z',
  user_id: 'auth0|<>',
  last_ip: '<my ip>',
  last_login: '2022-02-04T17:19:22.454Z',
  logins_count: 1
}

What am I getting wrong that is resulting in me not getting back the user's metadata?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source