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:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user