[SOLVED] Can't save user data using cloud functions

Hello!

I’m currently testing some commands and features to use in a game and my goal was to make all the game logic work inside cloud functions. The problem is: I can’t make the set() function to work to add/edit data from the User.

When I add or edit from a custom object it apparently works fine. What could I be doing wrong? If edit user data like this it’s something that is not possible, how could I create an object automatically when the user logs in to store their data?

Sincerely,

Use master key to edit users

I was already using it. I think the problem was in the promise handling… At least it’s working fine now. Thank you!