Post

Replies

Boosts

Views

Created

SecItemCopyMatching is only working if called after a delay
Hi, In my app I want to initiate device passcode authentication. (No need of touch ID, so not using Local authentication). For that I am adding the below query to keychain       kSecClass: kSecClassGenericPassword,       kSecAttrAccessControl: secAccessControlbject,       kSecAttrService: "PasscodeAuthentication",       kSecValueData: dataToStore as Any,     ]            SecItemAdd(insertQuery as CFDictionary, nil) Then at the point where I want to initiate passcode authentication calling bellow method: let status: OSStatus = SecItemCopyMatching(query, &typeRef) This was working fine. But When I initiate method to get the query from a closure it is not working and trowing error code -25293. If I add a delay before calling this method it is working fine. Why this is happening ?
1
0
982
Oct ’22
To determine If user have not added any fingerprints or faceID using Local authentication.
I am using deviceOwnerAuthentication policy of local authentication for biometric authentication. If user have not added any fingerprints or faceID, is there a method to determine it. LABiometricType is only checking if the device can support the touch/face ID. Couldn't find a method to determine if the user have added it.
1
0
1.2k
Oct ’22