Why I can’t get the current user in my cloud code? Even though I pass a header X-Parse-Session-Token
, user is still {}
Cloud code:
Parse.Cloud.define('hello', req => {
return req.user; // => {}
});
or
Parse.Cloud.define('hello', (request) => {
return request.user; // doesnt work either
});
Parse-Server package.json dep:
"dependencies": {
"express": "4.17.1",
"kerberos": "1.1.4",
"parse": "3.4.3",
"parse-server": "5.2.4"
},