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

Facebook login : The session has been invalidated because the user has changed the password #1095

Closed
umusset opened this issue Mar 19, 2016 · 4 comments

Comments

@umusset
Copy link

umusset commented Mar 19, 2016

For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

Parse Server 2.2.0

Steps to reproduce

Very easy to reproduce

  1. Facebook log in with a user
  2. User change their facebook's password
  3. Try to re-log in -> Error : The session has been invalidated because the user has changed the password

I try to unlink the facebook account but now the user is link with nothing, so he can't log in with facebook anymore...

Thanks !

@umusset umusset changed the title Facebook log in / Facebook login : The session has been invalidated because the user has changed the password Mar 19, 2016
@flovilmart
Copy link
Contributor

You should ask for a new token from the Facebook SDK directly. then link your user with the new token.

@umusset
Copy link
Author

umusset commented Mar 19, 2016

Thanks ! I find after 4h :)

For the others, you can use

PFFacebookUtils.unlinkUserInBackground(PFUser.currentUser()!, block: { (bol, ero) -> Void in
                        PFFacebookUtils.linkUserInBackground(PFUser.currentUser()!, withReadPermissions: ["public_profile","user_friends","email"], block: { (bolo, eror) -> Void in

                        })
                    })

when you detect the error

@umusset umusset closed this as completed Mar 19, 2016
@flovilmart
Copy link
Contributor

You may not even need to unlink I believe

@umusset
Copy link
Author

umusset commented Mar 19, 2016

Yes, it's works !

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