You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sessionKey mistakenly returned on cloud code requests #1482
npm list | grep parse shows parse@1.7.0 (JS SDK) for my front-end code.
When running parse-server with VERBOSE logging I see that some requests are returning a different session token than the one that was used for the request.
This seems to confuse the JS SDK and causes subsequent requests to use that token and fail as a result.
Interestingly, the session token returned seems to be the same, every time: 4yre10Sd7IYXWd0Q0Hn0WAGBF
I see this happen in the browser and copied the net request as Curl:
The very next cloud function request produced by the JS SDK has the session token that was returned by parse-server specified in the headers, which causes that request, and all subsequent requests to fail.
changed the title [-]Randomly getting sessionKey returned on cloud code requests[/-][+]sessionKey mistakenly returned on cloud code requests[/+]on Apr 14, 2016
Activity
[-]Randomly getting sessionKey returned on cloud code requests[/-][+]sessionKey mistakenly returned on cloud code requests[/+]flovilmart commentedon Apr 14, 2016
Thanks man!
flovilmart commentedon Apr 14, 2016
This should be solved by #1450
TylerBrock commentedon Apr 14, 2016
It didn't work for me running parse-server@master
Here are the logs, the request does an exact match on e-mail and we see the object returned has the sessionToken still.