mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
[EC-598] feat: implement calls to new service
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export interface CredentialRegistrationParams {
|
||||
rp: {
|
||||
id?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export abstract class Fido2Service {
|
||||
createCredential: (params: CredentialRegistrationParams) => unknown;
|
||||
assertCredential: () => unknown;
|
||||
}
|
||||
16
libs/common/src/services/fido2/fido2.service.ts
Normal file
16
libs/common/src/services/fido2/fido2.service.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {
|
||||
CredentialRegistrationParams,
|
||||
Fido2Service as Fido2ServiceAbstraction,
|
||||
} from "../../abstractions/fido2/fido2.service.abstraction";
|
||||
|
||||
export class Fido2Service implements Fido2ServiceAbstraction {
|
||||
createCredential(params: CredentialRegistrationParams): unknown {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log("Fido2Service.registerCredential");
|
||||
return undefined;
|
||||
}
|
||||
|
||||
assertCredential(): unknown {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user