Skip to content

In cloud functions, request.user is undefined #90

@natanrolnik

Description

@natanrolnik

In a few of my Cloud functions, I have the following code, to assert that the request is being made by an authenticated user:

var currentUser = request.user;

  if (!currentUser) {
    response.error("You must be authenticated to call queryClinic");
    return;
  }

When using parse-server, currentUser doesn't exists. Is this a temporary limitation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions