1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[EC-598] chore: continue rename webauthn to fido2

This commit is contained in:
Andreas Coroiu
2023-04-14 13:37:43 +02:00
parent b8d53c3147
commit a3a102fad7
36 changed files with 26 additions and 26 deletions

View File

@@ -0,0 +1,29 @@
export interface NewCredentialParams {
credentialName: string;
userName: string;
}
export abstract class Fido2UserInterfaceService {
newSession: (abortController?: AbortController) => Promise<Fido2UserInterfaceSession>;
}
export abstract class Fido2UserInterfaceSession {
fallbackRequested = false;
aborted = false;
confirmCredential: (cipherId: string, abortController?: AbortController) => Promise<boolean>;
pickCredential: (cipherIds: string[], abortController?: AbortController) => Promise<string>;
confirmNewCredential: (
params: NewCredentialParams,
abortController?: AbortController
) => Promise<boolean>;
confirmNewNonDiscoverableCredential: (
params: NewCredentialParams,
abortController?: AbortController
) => Promise<string | undefined>;
informExcludedCredential: (
existingCipherIds: string[],
abortController?: AbortController
) => Promise<void>;
close: () => void;
}