FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. minhngocnguyenduy
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by minhngocnguyenduy

    • RE: Custom user data as array?

      @dan When I create children by array like this

      userChildren = [{id: 'id', name: 'name', dateOfBirth: '2010-01-01'}]
      await axios.patch(
              `${config.iamHost}/api/user/${session.userId as string}`,
              {
                user: {
                  email: session.user!.email!,
                  data: {
                    children: userChildren,
                  },
                },
              },
              {
                headers: {
                  "X-FusionAuth-TenantId": config.iamTenantId,
                  Authorization: config.iamApiKey,
                },
              }
            );
      

      The code above did change the user custom data to

      children.id id
      children.name name
      etc
      

      I think because I didn't put the properties in the double quote as you did.

      So I have found a workaround, which is parsing it as a JSON string and later parsing it back.

      data: {
         children: JSON.stringify(userChildren),
      },
      
      posted in Q&A
      M
      minhngocnguyenduy
    • Custom user data as array?

      I want to add children's data to the user, but I don't need the child's email, etc.

      I need only the child's name, date of birth, and the UUID which should be generated automatically, so I choose to use the custom user data.

      But a user can have many children and the FusionAuth custom user data does not allow me to create an array object 😞

      How could I achieve this with FusionAuth?

      posted in Q&A
      M
      minhngocnguyenduy
    • RE: How to change user avatar image on FusionAuth?

      @joshua Thanks, Josh.

      My avatar is happy now 🙂

      posted in Q&A
      M
      minhngocnguyenduy
    • How to change user avatar image on FusionAuth?

      I am really new to FusionAuth.

      When I navigate to the user in the Admin, I can't change the avatar image, even the avatar of my admin account.

      I keep going through all the tabs, but found nothing 😞

      So how do you change the avatar image on FusionAuth in your videos?

      posted in Q&A
      M
      minhngocnguyenduy