Netlify Identity Can't Update User_Metadata

Doing this strictly client side - just some simple user_metadata. The following does not seem to work:

const user_metadata = {
            data: {
                full_name: this.fullName
            }
        }
console.log('and now im sending ', user_metadata)
netlifyIdentity.gotrue.currentUser().update({user_metadata})
   .then(user => {
      console.log('updated', user)
    })

The “now Im sending” bit looks right, but the response from Netlify is no changes at all. Why is that?

Hi @jhull,

I actually have this working on this demo site: https://identity-example-update-user.netlify.com/

The repo is available at https://github.com/futuregerald/identity-test-functions/blob/master/publish/index.html#L39-L49

Check that out and let me know if it helps you resolve the issue you’re having!