mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
export interface NewCredentialParams {
|
|
credentialName: string;
|
|
userName: string;
|
|
userVerification: boolean;
|
|
}
|
|
|
|
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<{ confirmed: boolean; userVerified: boolean }>;
|
|
confirmNewNonDiscoverableCredential: (
|
|
params: NewCredentialParams,
|
|
abortController?: AbortController
|
|
) => Promise<{ cipherId: string; userVerified: boolean }>;
|
|
informExcludedCredential: (
|
|
existingCipherIds: string[],
|
|
abortController?: AbortController
|
|
) => Promise<void>;
|
|
informCredentialNotFound: (abortController?: AbortController) => Promise<void>;
|
|
close: () => void;
|
|
}
|