1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

[EC-598] feat: fully working register and assert flow

This commit is contained in:
Andreas Coroiu
2022-12-16 14:12:47 +01:00
parent 91daba5991
commit 98f11362ce
7 changed files with 155 additions and 3 deletions

View File

@@ -39,7 +39,22 @@ export interface CredentialRegistrationResult {
attestationObject: string;
}
export interface CredentialAssertParams {
allowedCredentialIds: string[];
rpId: string;
origin: string;
challenge: string;
}
export interface CredentialAssertResult {
credentialId: string;
clientDataJSON: string;
authenticatorData: string;
signature: string;
userHandle: string;
}
export abstract class Fido2Service {
createCredential: (params: CredentialRegistrationParams) => Promise<CredentialRegistrationResult>;
assertCredential: () => unknown;
assertCredential: (params: CredentialAssertParams) => Promise<CredentialAssertResult>;
}