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

[EC-598] feat: add initial implementation of UI sessions

This commit is contained in:
Andreas Coroiu
2023-04-05 11:38:32 +02:00
parent 55cd736ec3
commit 11d340bc97
5 changed files with 146 additions and 33 deletions

View File

@@ -4,6 +4,29 @@ export interface NewCredentialParams {
}
export abstract class Fido2UserInterfaceService {
newSession: (abortController?: AbortController) => Promise<Fido2UserInterfaceSession>;
// 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[],
// newCredential: NewCredentialParams,
// abortController?: AbortController
// ) => Promise<void>;
}
export abstract class Fido2UserInterfaceSession {
fallbackRequested = false;
aborted = false;
confirmCredential: (cipherId: string, abortController?: AbortController) => Promise<boolean>;
pickCredential: (cipherIds: string[], abortController?: AbortController) => Promise<string>;
confirmNewCredential: (