Skip to content

In cloud functions, request.user is undefined #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
natanrolnik opened this issue Jan 31, 2016 · 3 comments
Closed

In cloud functions, request.user is undefined #90

natanrolnik opened this issue Jan 31, 2016 · 3 comments

Comments

@natanrolnik
Copy link
Contributor

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?

@gfosco
Copy link
Contributor

gfosco commented Jan 31, 2016

Yeah, this should be a quick fix. functions.js has a TODO for it. :)

@natanrolnik
Copy link
Contributor Author

Awesome! @gfosco thanks for the hard work on making parse-server accessible for us, future-Parse-orphans!

@gfosco
Copy link
Contributor

gfosco commented Feb 1, 2016

Will be addressed in #97.

@gfosco gfosco closed this as completed Feb 1, 2016
montymxb pushed a commit to montymxb/parse-server that referenced this issue Feb 14, 2016
…linking

First pass at adding login/link with Facebook support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants