0

I'm trying to update my current logged in user with the following code (iOS):

var currentUser:PFUser = PFUser.currentUser()!
currentUser.setObject(true, forKey: "phoneVerified")
currentUser.saveInBackground()

The user is authenticated via username and password.

The column "phoneVerified" will be successfully updated with this code, but unfortunately the current user session will be deleted in parse. After that I get an "invalid session token error" and the user has to login again. How can I update the current user data without deleting the session?

Many thanks!!

tscheiki
  • 31
  • 4
  • 2
    I have the same problem. It seen that parse still have a lot work around sessions. Turn off "Require Revocable Sessions" in settings. The fastest way I think. – PowHu Apr 23 '15 at 06:30

1 Answers1

0

Found the problem: After removing "Parse.enableLocalDatastore()" I can change the user without losing the session. PFUser.enableRevocableSessionInBackground() is still set.

tscheiki
  • 31
  • 4