Hi there!
A new player launches my game for the first time, and then behind the scenes he gets registered in PlayFab with his DeviceID. Later on the player should have an option to add email, password and displayname to his account.
Is it possible to do this via CloudScript?
I know that Client API has AddUsernamePasswordRequest and UpdateUserTitleDisplayNameRequest, but I would like to only make a single request to update everything at once. Server API doesn't offer the same methods, I guess this is why the following code doesn't work:
handlers.registerPlayer = function (args, context) { server.AddUsernamePassword({ Email: args.email, Password: args.password, }); server.UpdateUserTitleDisplayName({ DisplayName: args.displayName }); }
Are there any other solutions?
Thank you!