1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

[EC-598] feat: add support for user verifiction using MP during attestation

This commit is contained in:
Andreas Coroiu
2023-04-20 15:43:49 +02:00
parent 9b2f8b9462
commit 757050430d
6 changed files with 152 additions and 69 deletions

View File

@@ -1,6 +1,7 @@
export interface NewCredentialParams {
credentialName: string;
userName: string;
userVerification: boolean;
}
export abstract class Fido2UserInterfaceService {
@@ -16,11 +17,11 @@ export abstract class Fido2UserInterfaceSession {
confirmNewCredential: (
params: NewCredentialParams,
abortController?: AbortController
) => Promise<boolean>;
) => Promise<{ confirmed: boolean; userVerified: boolean }>;
confirmNewNonDiscoverableCredential: (
params: NewCredentialParams,
abortController?: AbortController
) => Promise<string | undefined>;
) => Promise<{ cipherId: string; userVerified: boolean }>;
informExcludedCredential: (
existingCipherIds: string[],
abortController?: AbortController