mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-22 11:35:21 +01:00
[PM-5731] feat: ensure unlocked vault
This commit is contained in:
parent
ca250c53ad
commit
4988dbea72
@ -87,5 +87,12 @@ namespace Bit.Core.Abstractions
|
||||
/// <param name="confirmNewCredentialParams">The parameters to use when asking the user to confirm the creation of a new credential.</param>
|
||||
/// <returns>The ID of the cipher where the new credential should be saved.</returns>
|
||||
Task<Fido2ConfirmNewCredentialResult> ConfirmNewCredentialAsync(Fido2ConfirmNewCredentialParams confirmNewCredentialParams);
|
||||
|
||||
/// <summary>
|
||||
/// Make sure that the vault is unlocked.
|
||||
/// This should open a window and ask the user to login or unlock the vault if necessary.
|
||||
/// </summary>
|
||||
/// <returns>When vault has been unlocked.</returns>
|
||||
Task EnsureUnlockedVaultAsync();
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace Bit.Core.Services
|
||||
throw new NotSupportedError();
|
||||
}
|
||||
|
||||
// await _userInterface.EnsureUnlockedVault();
|
||||
await _userInterface.EnsureUnlockedVaultAsync();
|
||||
await _syncService.FullSyncAsync(false);
|
||||
|
||||
var existingCipherIds = await FindExcludedCredentialsAsync(
|
||||
@ -105,8 +105,7 @@ namespace Bit.Core.Services
|
||||
{
|
||||
List<CipherView> cipherOptions;
|
||||
|
||||
// TODO: Unlock vault somehow
|
||||
// await userInterfaceSession.ensureUnlockedVault();
|
||||
await _userInterface.EnsureUnlockedVaultAsync();
|
||||
await _syncService.FullSyncAsync(false);
|
||||
|
||||
if (assertionParams.AllowCredentialDescriptorList?.Length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user