Closed farhan-syed closed 8 years ago
You'll need to switch to using an explicit session token in your queries if you make to make queries in cloud code as a specific user. See the migration guide: https://github.com/ParsePlatform/Parse-Server/wiki/Compatibility-with-Hosted-Parse#Cloud-Code
Not trying to do cloud code, just logging in on a website
This repo is for issues in Parse Server, not for help building your app. That said, you can't use current user in a node environment. Imagine what would happen when one person hits the login
endpoint, then then a second one hit the login
endpoint, then the first one hit the home
endpoint. Current user would still be set to the second user. This is why current user doesn't exist in node.
What you should do instead is store a session token on the client, and use that session token in your requests.
is there some guide on this? i do have parse-express-cookie-sesion
here is what im doing, the app.post works for login, but when it goes to app.get, Parse.User.current is null