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

FB session becomes invalid when fetching user #427

Closed
absolutlabs opened this issue Feb 15, 2016 · 2 comments
Closed

FB session becomes invalid when fetching user #427

absolutlabs opened this issue Feb 15, 2016 · 2 comments

Comments

@absolutlabs
Copy link

It seems like fetching the current user [[PFUser currentUser] fetch] invalidates the session when user is logged in through FB.
No problem if the user has authenticated with email & password

@absolutlabs
Copy link
Author

Session token is modified when fetching user :

using username/password to log in :
session token = r:0d402b2e9d9e0b5866ae62358d20870e → [[PFUser currentUser] fetch] → session token = r:0d402b2e9d9e0b5866ae62358d20870e → [[PFUser currentUser] save] works :)

using FB :
session token = r:031c29dcacb2d24a2dbf8ccec1ea608b → [[PFUser currentUser] fetch] → session token = VwlQ3rYOgqylKA2FmpkPCja7l → [[PFUser currentUser] save] doesn't work :/

@absolutlabs
Copy link
Author

Everything works well with 2.1.2 (session token and FB oauth)
Problem solved ! Thanks :)

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

1 participant