Skip to main content

PublicKeyCredentialCreationOptionsJSON

A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to (eventually) get passed into navigator.credentials.create(...) in the browser.

This should eventually get replaced with official TypeScript DOM types when WebAuthn L3 types eventually make it into the language:

https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptionsjson

Properties​

PropertyType
attestation?AttestationConveyancePreference
attestationFormats?AttestationFormat[]
authenticatorSelection?AuthenticatorSelectionCriteria
challengestring
excludeCredentials?PublicKeyCredentialDescriptorJSON[]
extensions?AuthenticationExtensionsClientInputs
hints?PublicKeyCredentialHint[]
pubKeyCredParamsPublicKeyCredentialParameters[]
rpPublicKeyCredentialRpEntity
timeout?number
userPublicKeyCredentialUserEntityJSON