Restrict passwords in Keychain only to "this" device and disable iCloud syncing

This commit is contained in:
Danny Moesch 2019-06-24 20:47:36 +02:00 committed by Mingshen Sun
parent 5d1a3eae1a
commit ca3271b20a

View file

@ -13,6 +13,8 @@ import KeychainAccess
public class Utils {
private static let keychain = Keychain(service: Globals.bundleIdentifier, accessGroup: Globals.groupIdentifier)
.accessibility(.whenUnlockedThisDeviceOnly)
.synchronizable(false)
public static func getPasswordFromKeychain(name: String) -> String? {
return try? keychain.getString(name)