From 0dafd851946dd287df5d906db8e35b7ec93d7a01 Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Tue, 25 Apr 2023 16:29:35 +0200 Subject: [PATCH] [EC-598] feat: quick fix noop service --- .../noop-fido2-user-interface.service.ts | 30 ++----------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/libs/common/src/fido2/services/noop-fido2-user-interface.service.ts b/libs/common/src/fido2/services/noop-fido2-user-interface.service.ts index 513c8c451de..7600852e047 100644 --- a/libs/common/src/fido2/services/noop-fido2-user-interface.service.ts +++ b/libs/common/src/fido2/services/noop-fido2-user-interface.service.ts @@ -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 { - return false; - } - - pickCredential(): Promise { - throw new RequestAbortedError(); - } - - async confirmNewCredential(): Promise { - return false; - } - - async confirmNewNonDiscoverableCredential( - params: NewCredentialParams, - abortController?: AbortController - ): Promise { - return null; - } - - async informExcludedCredential( - existingCipherIds: string[], - newCredential: NewCredentialParams, - abortController?: AbortController - ): Promise { - // Not Implemented + newSession(abortController?: AbortController): Promise { + throw new Error("Not implemented exception"); } }