mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[EC-598] feat: add timeout and UV to params
This commit is contained in:
@@ -73,6 +73,7 @@ export class WebauthnUtils {
|
|||||||
id: Fido2Utils.bufferToString(keyOptions.user.id),
|
id: Fido2Utils.bufferToString(keyOptions.user.id),
|
||||||
displayName: keyOptions.user.displayName,
|
displayName: keyOptions.user.displayName,
|
||||||
},
|
},
|
||||||
|
timeout: keyOptions.timeout,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,6 +106,8 @@ export class WebauthnUtils {
|
|||||||
keyOptions.allowCredentials?.map((c) => Fido2Utils.bufferToString(c.id)) ?? [],
|
keyOptions.allowCredentials?.map((c) => Fido2Utils.bufferToString(c.id)) ?? [],
|
||||||
challenge: Fido2Utils.bufferToString(keyOptions.challenge),
|
challenge: Fido2Utils.bufferToString(keyOptions.challenge),
|
||||||
rpId: keyOptions.rpId,
|
rpId: keyOptions.rpId,
|
||||||
|
userVerification: keyOptions.userVerification,
|
||||||
|
timeout: keyOptions.timeout,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export interface CredentialRegistrationParams {
|
|||||||
id: string; // b64 encoded
|
id: string; // b64 encoded
|
||||||
displayName: string;
|
displayName: string;
|
||||||
};
|
};
|
||||||
|
timeout: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CredentialRegistrationResult {
|
export interface CredentialRegistrationResult {
|
||||||
@@ -47,6 +48,8 @@ export interface CredentialAssertParams {
|
|||||||
rpId: string;
|
rpId: string;
|
||||||
origin: string;
|
origin: string;
|
||||||
challenge: string;
|
challenge: string;
|
||||||
|
userVerification?: "discouraged" | "preferred" | "required";
|
||||||
|
timeout: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CredentialAssertResult {
|
export interface CredentialAssertResult {
|
||||||
|
|||||||
Reference in New Issue
Block a user