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:
Lucas Garron 2018-10-10 12:53:43 -07:00 committed by Andy
parent 3d6ded6cd7
commit 273c8be397

View File

@ -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;
}