Custom fields and updating user

Hi,

Is there a function to save custom fields to a User in the database?

I want users to connect with MetaMask then create a profile with custom username, email, and photo.

Is there also a function to update the User or is it just something like:
user.set(“field_name”, value)
user.save()

Yes, you can add custom columns in the user table. You already have a username and email column by default pretty sure, and you can just add a photo column in your dashboard.

And then for changing the user, yes that is how you update values, however the user table requires the master key to update, which you would have to import into your frontend, which is not safe, so I suggest you make a cloud function that takes care of updating the user info

1 Like