mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-26 14:01:24 +00:00
Make keychain data better accessible
Use `kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly` instead of `kSecAttrAccessibleWhenUnlockedThisDeviceOnly` when storing data into the keychain to allow the data to be also fetched when the app is launched in the background
This commit is contained in:
@@ -282,7 +282,7 @@
|
||||
andPassword:stringValue
|
||||
forServiceName:bit_keychainHockeySDKServiceName()
|
||||
updateExisting:YES
|
||||
accessibility:kSecAttrAccessibleWhenUnlockedThisDeviceOnly
|
||||
accessibility:kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
|
||||
error:&error];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user