1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 11:13:46 +00:00

[EC-598] feat: handle unsupported pinAuth

This commit is contained in:
Andreas Coroiu
2023-03-22 10:01:01 +01:00
parent e1833ca352
commit 260ea22adb
3 changed files with 26 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ export class Fido2AuthenticatorService implements Fido2AuthenticatorServiceAbstr
if (params.options?.uv != undefined && typeof params.options.uv !== "boolean") {
throw new Fido2AutenticatorError(Fido2AutenticatorErrorCode.CTAP2_ERR_INVALID_OPTION);
}
if (params.pinAuth != undefined) {
throw new Fido2AutenticatorError(Fido2AutenticatorErrorCode.CTAP2_ERR_PIN_AUTH_INVALID);
}
}
private async vaultContainsId(ids: string[]): Promise<boolean> {