I want to validate an iOS user calling a Cloud Code function.
Parse.Cloud.define("sayMyName", function(request, response) {
var user = request.user;
console.log(user);
response.success("Your name is: " + user.get("name"));
)};
However this always brings up undefined
. There doesn't seem to be any documentation about this, and it is Parse specific, so my hands are kind of tied.
Within Cloud Code, how do I determine which user is calling the function?
and make sure user has name as key.