Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simplewebauthn/packages/types/src/index.ts>PublicKeyCredentialCreationOptionsJSON

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
Latest
interface PublicKeyCredentialCreationOptionsJSON
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
timeout: number
optional
excludeCredentials: PublicKeyCredentialDescriptorJSON[]
optional
authenticatorSelection: AuthenticatorSelectionCriteria
optional
attestation: AttestationConveyancePreference