mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-26 22:39:39 +08:00
webauthn: Mark rpId and allowCredentials as optional for PublicKeyCredentialRequestOptions. (#29463)
As documented at https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions (already linked in the comment for the interface), the the `rpId` and and `allowCredentials` fields are optional.
This commit is contained in:
@@ -392,8 +392,8 @@ type UserVerificationRequirement = "required" | "preferred" | "discouraged";
|
||||
interface PublicKeyCredentialRequestOptions {
|
||||
challenge: BufferSource;
|
||||
timeout: number;
|
||||
rpId: string;
|
||||
allowCredentials: PublicKeyCredentialDescriptor[];
|
||||
rpId?: string;
|
||||
allowCredentials?: PublicKeyCredentialDescriptor[];
|
||||
userVerification?: UserVerificationRequirement;
|
||||
extensions?: any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user