swift - Parse iOS - Update PFUser.currentUser() and keep session -
i'm trying update current logged in user following code (ios):
var currentuser:pfuser = pfuser.currentuser()! currentuser.setobject(true, forkey: "phoneverified") currentuser.saveinbackground()
the user authenticated via username , password.
the column "phoneverified" updated code, unfortunately current user session deleted in parse. after "invalid session token error" , user has login again. how can update current user data without deleting session?
many thanks!!
found problem: after removing "parse.enablelocaldatastore()" can change user without losing session. pfuser.enablerevocablesessioninbackground() still set.