1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-27 21:53:57 +00:00

Support for storing multiple biometric integrity states for iOS (#1110)

* support for storing multiple biometric integrity states for iOS

* remove unused var & save new extension bio state upon password validation
This commit is contained in:
Matt Portune
2020-10-07 12:18:36 -04:00
committed by GitHub
parent 8f533bc576
commit 37e19d9a60
6 changed files with 35 additions and 12 deletions

View File

@@ -30,8 +30,9 @@ namespace Bit.Droid.Services
_keystore.Load(null);
}
public Task<bool> SetupBiometricAsync()
public Task<bool> SetupBiometricAsync(string bioIntegrityKey = null)
{
// bioIntegrityKey used in iOS only
if (Build.VERSION.SdkInt >= BuildVersionCodes.M)
{
CreateKey();
@@ -40,8 +41,9 @@ namespace Bit.Droid.Services
return Task.FromResult(true);
}
public Task<bool> ValidateIntegrityAsync()
public Task<bool> ValidateIntegrityAsync(string bioIntegrityKey = null)
{
// bioIntegrityKey used in iOS only
if (Build.VERSION.SdkInt < BuildVersionCodes.M)
{
return Task.FromResult(true);