I'm doing an "Remember me"-function in my app, and I've came across solution where you store all credentials in Keychain and solutions where you just store the password in Keychain? The stored password I just want to use upon authentication, however I use the username a lot more, and instead of having to fetch it from the backend, I could just get it from disk. Is one of the mentioned solution better than the other?
Upon authentication I just do this, if I go with the split solution:
let hasLoginKey = NSUserDefaults.standardUserDefaults().setBool(true, forKey: "loginKey")
NSUserDefaults.standardUserDefaults().setValue(username, forKey: "username")