Restrict passwords in Keychain only to "this" device and disable iCloud syncing
This commit is contained in:
parent
5d1a3eae1a
commit
ca3271b20a
1 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ import KeychainAccess
|
||||||
public class Utils {
|
public class Utils {
|
||||||
|
|
||||||
private static let keychain = Keychain(service: Globals.bundleIdentifier, accessGroup: Globals.groupIdentifier)
|
private static let keychain = Keychain(service: Globals.bundleIdentifier, accessGroup: Globals.groupIdentifier)
|
||||||
|
.accessibility(.whenUnlockedThisDeviceOnly)
|
||||||
|
.synchronizable(false)
|
||||||
|
|
||||||
public static func getPasswordFromKeychain(name: String) -> String? {
|
public static func getPasswordFromKeychain(name: String) -> String? {
|
||||||
return try? keychain.getString(name)
|
return try? keychain.getString(name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue