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!!