Skip to content

FB session becomes invalid when fetching user #427

Description

@absolutlabs

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

Activity

  1. absolutlabs commented on Feb 17, 2016

    @absolutlabs
    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 :/

  2. absolutlabs commented on Feb 23, 2016

    @absolutlabs
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions