1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-20 21:01:29 +01:00

[EC-598] feat: add timeout and UV to params

This commit is contained in:
Andreas Coroiu 2023-02-10 15:52:46 +01:00
parent 5f776c7176
commit 158d1fbe01
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A
2 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,7 @@ export class WebauthnUtils {
id: Fido2Utils.bufferToString(keyOptions.user.id),
displayName: keyOptions.user.displayName,
},
timeout: keyOptions.timeout,
};
}
@ -105,6 +106,8 @@ export class WebauthnUtils {
keyOptions.allowCredentials?.map((c) => Fido2Utils.bufferToString(c.id)) ?? [],
challenge: Fido2Utils.bufferToString(keyOptions.challenge),
rpId: keyOptions.rpId,
userVerification: keyOptions.userVerification,
timeout: keyOptions.timeout,
};
}

View File

@ -31,6 +31,7 @@ export interface CredentialRegistrationParams {
id: string; // b64 encoded
displayName: string;
};
timeout: number;
}
export interface CredentialRegistrationResult {
@ -47,6 +48,8 @@ export interface CredentialAssertParams {
rpId: string;
origin: string;
challenge: string;
userVerification?: "discouraged" | "preferred" | "required";
timeout: number;
}
export interface CredentialAssertResult {