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:
@@ -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: (
|
||||
|
||||
Reference in New Issue
Block a user