mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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:
parent
3d6ded6cd7
commit
273c8be397
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user