I am trying to assign a value to a custom field on user login. According to the documentation this should be possible; however when I try to assign the value it does not get updated on the user’s account.
Here is my code:
if(SPIUser.ID) {
updatedInfo.contactDetails.customFields = {SPI_Id: SPIUser.ID}
}
return members.updateMember(wixUser._id, updatedInfo).then(member => {return member})
here is the wix velo article: updateMember - Velo API Reference - Wix.com