-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Get user in cloud function #269
Comments
|
Yes i have user logged. I just call a cloud function from my web app using javascript SDK js1.6.14. |
Can you capture the request being made to the server? One way is to run the server with an environment variable set, |
Voilà !
and this my Request payload in Goole Chrome
|
@gfosco I found the problem. In _User collection a field _session_token is present and if you fetch the user data form server, this field override the sessionToken saved in your browser. If you don't fetch the user, all request to server contain the right sessionToken and if you fetch the user data from the server, all next requests will contain the bad sessionToken come form the _session_token in user data fetched. |
Any follow up for this bug ? |
+1, parse-server is not really usable in most cases without request.user returning client's user |
@gfosco. Bug still present in 2.0.8... |
fix whit #373 |
How i can get the user made the request in cloud function ?
i try request.user but is always null.
Is possible in parse-server to get this information ?
The text was updated successfully, but these errors were encountered: