Explorar el Código

set access rule for newly added accounts to kSecAttrAccessibleAfterFirstUnlock

cyberta hace 3 años
padre
commit
9fd875d1c5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      DcCore/DcCore/Helper/KeychainManager.swift

+ 1 - 0
DcCore/DcCore/Helper/KeychainManager.swift

@@ -46,6 +46,7 @@ public class KeychainManager {
           kSecAttrAccount as String: "\(id)",
           kSecClass: kSecClassGenericPassword,
           kSecAttrAccessGroup as String: KcM.sharedKeychainGroup as AnyObject,
+          kSecAttrAccessible: kSecAttrAccessibleAfterFirstUnlock,
         ] as CFDictionary
 
         let status = SecItemAdd(keychainItemQuery, nil)