Skip to content
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

Parse Server doesn't return sessionToken on Parse.User.current().fetch() on JS SDK #845

Closed
tobernguyen opened this issue Mar 5, 2016 · 2 comments

Comments

@tobernguyen
Copy link
Contributor

In my Facebook application, when I call Parse.User.current().fetch(), Parse Server won't return sessionToken for that user as Parse API do. After that JS SDK will save that response (without sessionToken) into localStorage, which made all request after that not include sessionToken.

In my case, after call Parse.User.current().fetch(), I cannot call any cloud function because cloud code will check if the request is called by a logged-in user.

I have added two images, one is call fetch current user via Parse API, and one via Parse Server, 2 servers connected to the same database.

Response from Parse API
response from parse com

Response from Parse Server (missing sessionToken)
response from parse server

@tobernguyen
Copy link
Contributor Author

After a long time researching, I figured out that this error is caused by this #852

@gfosco
Copy link
Contributor

gfosco commented Mar 6, 2016

Fixed by 857, will be in next release. 👍

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