mirror of
https://github.com/bitwarden/browser
synced 2026-01-03 17:13:47 +00:00
* Fix safari using outdated biometrics protocol * Remove logging * Remove log * Move canEnableBiometricUnlock to biometric service * Fix build * Add tests * Fix type error * Attempt to fix build * Fix build * Fix test failure
31 lines
902 B
TypeScript
31 lines
902 B
TypeScript
import { UserId } from "@bitwarden/common/types/guid";
|
|
import { UserKey } from "@bitwarden/common/types/key";
|
|
import { BiometricsService, BiometricsStatus } from "@bitwarden/key-management";
|
|
|
|
export class CliBiometricsService extends BiometricsService {
|
|
async authenticateWithBiometrics(): Promise<boolean> {
|
|
return false;
|
|
}
|
|
|
|
async getBiometricsStatus(): Promise<BiometricsStatus> {
|
|
return BiometricsStatus.PlatformUnsupported;
|
|
}
|
|
|
|
async unlockWithBiometricsForUser(userId: UserId): Promise<UserKey | null> {
|
|
return null;
|
|
}
|
|
|
|
async getBiometricsStatusForUser(userId: UserId): Promise<BiometricsStatus> {
|
|
return BiometricsStatus.PlatformUnsupported;
|
|
}
|
|
|
|
async getShouldAutopromptNow(): Promise<boolean> {
|
|
return false;
|
|
}
|
|
|
|
async setShouldAutopromptNow(value: boolean): Promise<void> {}
|
|
async canEnableBiometricUnlock(): Promise<boolean> {
|
|
return false;
|
|
}
|
|
}
|