[PM-8137] Introduce FIDO 2 user verification tracking (#3459)

This commit is contained in:
Patrick Honkonen authored and GitHub committed 2024-07-15 14:44:16 -04:00
1 parent 721c69619e
commit 5ea2f1c736
2 files changed
+8

No files matched your search

@@ -11,6 +11,12 @@ import com.x8bit.bitwarden.data.autofill.fido2.model.Fido2ValidateOriginResult
*/
interface Fido2CredentialManager {
/**
* Returns true when the user has performed an explicit verification action. E.g., biometric
* verification, device credential verification, or vault unlock.
*/
var isUserVerified: Boolean
/**
* Attempt to validate the RP and origin of the provided [fido2CredentialRequest].
*/
@@ -39,6 +39,8 @@ class Fido2CredentialManagerImpl(
) : Fido2CredentialManager,
Fido2CredentialStore by fido2CredentialStore {
override var isUserVerified: Boolean = false
override suspend fun registerFido2Credential(
userId: String,
fido2CredentialRequest: Fido2CredentialRequest,