-
-
Notifications
You must be signed in to change notification settings - Fork 595
Parse.User.logOut doesn't destroy current user? #204
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
Comments
I can confirm issue is introduced in About the versioning, I just think they didn't update it. You should refer to https://github.com/ParsePlatform/Parse-SDK-JS/releases instead and you'll see latest version is |
@andrewimm: I investigated the issue in Do you think refactoring made to promises may have introduced this issue? |
@tristanbbq the cache gets reset here: https://github.com/ParsePlatform/Parse-SDK-JS/blob/master/src/ParseUser.js#L921 I can't reproduce on my own with 1.7.0, can you provide more information? Are either of you using parse-react, or anything else that wraps the default functionality of Parse.User.logOut? |
@andrewimm: you're right, your test covers the case. Not sure what's going on, but I do am using [email protected] |
While my usage is in conjunction with react, I'm just using the parse I will try some isolated tests using just the module to see what might be On Thursday, February 11, 2016, Tristan Tran [email protected]
Rusil G. Patel[image: LinkedIn] https://www.linkedin.com/pub/rusil-g-patel/8/32a/739 |
@andrewimm ok so I uninstalled parse-react and re-tested 1.7.0, and no issues, |
I believe there is a bug in @ndnguru if you can find a reliable repro, that'll be helpful in debugging this peculiarity. |
@andrewimm sounds good 👍 thanks for following up |
@andrewimm : FYI it's been already raised in parse-react: parse-community/ParseReact#161 |
Upon further inspection, I found that I was including both parse and parse-react in a component. Although I stored references separately, the parse-react was causing the issue. Why would that be? After I commented out the suspect line, the problem subsided. Thoughts? |
@ndnguru well, at least everything makes sense now :) |
@andrewimm I think we can close this issue, as @ndnguru investigation confirms it's an issue with parse-react. It's already raised: parse-community/ParseReact#161 |
This issue is also happening with Parse version 1.6.0. See what I commented: |
Why are you clousing this @andrewimm. I'm not using parse-react and I have the same issue. |
Sorry @albertolive , I did that before I saw your comment. I was doing it in response to Tristan's comment above that everything here was resolved. Can you please open a new issue for discussion, since it seems to be a different issue? |
No problem! Thank you! |
When I try to logOut a user, it seems like the session is destroyed but a call to Parse.User.Current() returns the same old user. The docs say that future calls to current() should return null. When I revert back to the previous version I was using (1.6.5) this issue doesn't exist.
Also wondering why there is a difference in the versioning of this module when compared to what is listed for the JS SDK listed on Parse.com (https://www.parse.com/docs/downloads). Parse.com shows 1.6.14, while the npm module is on 1.7.0
The text was updated successfully, but these errors were encountered: