kSecAttrAccessibleWhenUnlockedThisDeviceOnly
The data in the keychain item can be accessed only while the device is unlocked by the user.
Declaration
let kSecAttrAccessibleWhenUnlockedThisDeviceOnly: CFStringMentioned in
Discussion
This is recommended for items that need to be accessible only while the application is in the foreground. Items with this attribute do not migrate to a new device. Thus, after restoring from a backup of a different device, these items will not be present.