mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
[EC-598] feat: quick fix noop service
This commit is contained in:
@@ -1,34 +1,10 @@
|
|||||||
import { RequestAbortedError } from "../abstractions/fido2-client.service.abstraction";
|
|
||||||
import {
|
import {
|
||||||
Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction,
|
Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction,
|
||||||
NewCredentialParams,
|
Fido2UserInterfaceSession,
|
||||||
} from "../abstractions/fido2-user-interface.service.abstraction";
|
} from "../abstractions/fido2-user-interface.service.abstraction";
|
||||||
|
|
||||||
export class Fido2UserInterfaceService implements Fido2UserInterfaceServiceAbstraction {
|
export class Fido2UserInterfaceService implements Fido2UserInterfaceServiceAbstraction {
|
||||||
async confirmCredential(): Promise<boolean> {
|
newSession(abortController?: AbortController): Promise<Fido2UserInterfaceSession> {
|
||||||
return false;
|
throw new Error("Not implemented exception");
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user