import { type PublicKeyCredentialCreationOptionsJSON } from "https://deno.land/x/simplewebauthn@v11.0.0/packages/types/src/index.ts";
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
challenge: Base64URLString
pubKeyCredParams: PublicKeyCredentialParameters[]
optional
excludeCredentials: PublicKeyCredentialDescriptorJSON[]optional
authenticatorSelection: AuthenticatorSelectionCriteriaoptional
attestation: AttestationConveyancePreferenceoptional
extensions: AuthenticationExtensionsClientInputs