mirror of
https://github.com/bitwarden/browser
synced 2025-12-29 22:53:44 +00:00
28 lines
825 B
TypeScript
28 lines
825 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> {}
|
|
}
|