mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
[PM-10741] Refactor biometrics interface & add dynamic status (#10973)
This commit is contained in:
14
libs/key-management/src/biometrics/biometrics-commands.ts
Normal file
14
libs/key-management/src/biometrics/biometrics-commands.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export enum BiometricsCommands {
|
||||
/** Perform biometric authentication for the system's user. Does not require setup, and does not return cryptographic material, only yes or no. */
|
||||
AuthenticateWithBiometrics = "authenticateWithBiometrics",
|
||||
/** Get biometric status of the system, and can be used before biometrics is set up. Only returns data about the biometrics system, not about availability of cryptographic material */
|
||||
GetBiometricsStatus = "getBiometricsStatus",
|
||||
/** Perform biometric authentication for the system's user for the given bitwarden account's credentials. This returns cryptographic material that can be used to unlock the vault. */
|
||||
UnlockWithBiometricsForUser = "unlockWithBiometricsForUser",
|
||||
/** Get biometric status for a specific user account. This includes both information about availability of cryptographic material (is the user configured for biometric unlock? is a masterpassword unlock needed? But also information about the biometric system's availability in a single status) */
|
||||
GetBiometricsStatusForUser = "getBiometricsStatusForUser",
|
||||
|
||||
// legacy
|
||||
Unlock = "biometricUnlock",
|
||||
IsAvailable = "biometricUnlockAvailable",
|
||||
}
|
||||
Reference in New Issue
Block a user