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:
parent
5f776c7176
commit
158d1fbe01
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user