Skip to content

Call cloud function in cloud function, pass sessionToken not working  #363

Closed
@flessard

Description

@flessard

If you try to call an other cloud function inside a cloud function and you try to pass the sessionToken to get the user in the other cloud function. Not working.

return Parse.Cloud.run('getUserRole', data, {
    sessionToken: request.user.get("sessionToken")
});
Parse.Cloud.define("getUserRole", function(request, response) {
    request.user // is undefined
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions