using Bit.Core.Utilities.Fido2;
namespace Bit.Core.Abstractions
{
public struct Fido2GetAssertionUserInterfaceCredential
{
public string CipherId { get; set; }
public Fido2UserVerificationPreference UserVerificationPreference { get; set; }
}
public interface IFido2GetAssertionUserInterface : IFido2UserInterface
{
///
/// Ask the user to pick a credential from a list of existing credentials.
///
/// The credentials that the user can pick from, and if the user must be verified before completing the operation
/// The ID of the cipher that contains the credentials the user picked, and if the user was verified before completing the operation
Task<(string CipherId, bool UserVerified)> PickCredentialAsync(Fido2GetAssertionUserInterfaceCredential[] credentials);
}
}