diff --git a/index.d.ts b/index.d.ts index 214146cf..1bfa2b21 100644 --- a/index.d.ts +++ b/index.d.ts @@ -10,6 +10,8 @@ export enum RNSensitiveInfoAccessControlOptions { 'kSecAccessControlTouchIDAny', 'kSecAccessControlTouchIDCurrentSet', 'kSecAccessControlUserPresence', + 'kSecAccessControlBiometryAny', + 'kSecAccessControlBiometryCurrentSet', } export enum RNSensitiveInfoAttrAccessibleOptions { diff --git a/ios/RNSensitiveInfo/RNSensitiveInfo.m b/ios/RNSensitiveInfo/RNSensitiveInfo.m index f30bf18f..f1fa6054 100644 --- a/ios/RNSensitiveInfo/RNSensitiveInfo.m +++ b/ios/RNSensitiveInfo/RNSensitiveInfo.m @@ -34,6 +34,12 @@ CFStringRef convertkSecAttrAccessible(NSString* key){ if([key isEqual: @"kSecAttrAccessibleAlwaysThisDeviceOnly"]){ return kSecAttrAccessibleAlwaysThisDeviceOnly; } + if ([key isEqual: @"kSecAccessControlBiometryAny"]) { + return kSecAccessControlBiometryAny; + } + if ([key isEqual: @"kSecAccessControlBiometryCurrentSet"]) { + return kSecAccessControlBiometryCurrentSet; + } return kSecAttrAccessibleWhenUnlocked; }