1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

[EC-598] feat: quick fix noop service

This commit is contained in:
Andreas Coroiu
2023-04-25 16:29:35 +02:00
parent 3a1b56860e
commit 0dafd85194

View File

@@ -1,34 +1,10 @@
import { RequestAbortedError } from "../abstractions/fido2-client.service.abstraction";
import {
Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction,
NewCredentialParams,
Fido2UserInterfaceSession,
} from "../abstractions/fido2-user-interface.service.abstraction";
export class Fido2UserInterfaceService implements Fido2UserInterfaceServiceAbstraction {
async confirmCredential(): Promise<boolean> {
return false;
}
pickCredential(): Promise<string> {
throw new RequestAbortedError();
}
async confirmNewCredential(): Promise<boolean> {
return false;
}
async confirmNewNonDiscoverableCredential(
params: NewCredentialParams,
abortController?: AbortController
): Promise<string> {
return null;
}
async informExcludedCredential(
existingCipherIds: string[],
newCredential: NewCredentialParams,
abortController?: AbortController
): Promise<void> {
// Not Implemented
newSession(abortController?: AbortController): Promise<Fido2UserInterfaceSession> {
throw new Error("Not implemented exception");
}
}