I am currently using the following module to upload custom data to Cloud Save, but the problem with this method is that it can be exploited and lacks security. How can I create a code that only developers can use? Would the content at the following URL be relevant to this issue?
[CloudCodeFunction(CloudCodeFunctions.SetGameData)]
public async Task<SetItemResponse> SetGameData(IExecutionContext context, IGameApiClient gameApiClient, bool isPrivate, string customId, string key, object value)
{
if (isPrivate == true)
{
var response = await gameApiClient.CloudSaveData.SetPrivateCustomItemAsync(context, context.ServiceToken,
context.ProjectId, customId, new SetItemBody(key, value));
return response.Data;
}
else
{
var response = await gameApiClient.CloudSaveData.SetCustomItemAsync(context, context.ServiceToken,
context.ProjectId, customId, new SetItemBody(key, value));
return response.Data;
}
}