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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -