Browse Source

set access rule for newly added accounts to kSecAttrAccessibleAfterFirstUnlock

cyberta 3 năm trước cách đây
mục cha
commit
9fd875d1c5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)