PublicKeyCredentialCreationOptions


Options for creating a new public key credential (passkey) as part of the WebAuthn registration ceremony.

Fields

Name Type Notes

rp

PublicKeyCredentialRpEntity

Information about the Relying Party

user

PublicKeyCredentialUserEntity

Information about the user for whom credentials are being created

challenge

String

A base64-encoded cryptographic challenge to be signed by the authenticator

pubKeyCredParams

[PublicKeyCredentialParameters]

A list of acceptable public key algorithms

timeout

Integer

Timeout for the registration operation in milliseconds, optional

excludeCredentials

[PublicKeyCredentialDescriptor]

List of credentials to exclude from creation to prevent re-registration

authenticatorSelection

AuthenticatorSelectionCriteria

Criteria for filtering authenticators

attestation

String

Attestation conveyance preference (none, indirect, or direct)

extensions

AuthenticationExtensionsClientInputs

Optional extensions to be used during credential creation