Things aren't as clear as they could be on the best practice to store logged in data on the users phone. Some suggest that data such as userID = 123
and loggedIn = true
type data should be stored in the NSUSerDefaults
data. Yet from my understanding, this data can be easily manipulated with very little, according to this article, https://www.andyibanez.com/nsuserdefaults-not-for-sensitive-data/
So the question being: What is the best way to persist logged in data as the user is navigating various screens. The only data that needs to be stored is the userID
or OAuth Token
along with a few other custom bits about the status of this user's account. What is the most secure way of storing this data to make sure that someone cannot simply fake being another user when data is being pulled from the server?
Regards, Michael