PublicKeyCredentialCreationOptions

@Serializable
data class PublicKeyCredentialCreationOptions(val challenge: String, val rpId: String, val rpName: String, val userId: String, val userName: String, val userDisplayName: String, val timeout: Long = 60000, val attestation: String = "none", val authenticatorSelection: AuthenticatorSelection? = null, val pubKeyCredParams: List<PubKeyCredParam> = listOf( PubKeyCredParam(type = "public-key", alg = -7) // ES256 ), val excludeCredentials: List<CredentialDescriptor> = emptyList())

WebAuthn credential creation options for passkey registration. Matches the WebAuthn PublicKeyCredentialCreationOptions structure.

Constructors

Link copied to clipboard
constructor(challenge: String, rpId: String, rpName: String, userId: String, userName: String, userDisplayName: String, timeout: Long = 60000, attestation: String = "none", authenticatorSelection: AuthenticatorSelection? = null, pubKeyCredParams: List<PubKeyCredParam> = listOf( PubKeyCredParam(type = "public-key", alg = -7) // ES256 ), excludeCredentials: List<CredentialDescriptor> = emptyList())

Properties

Link copied to clipboard

Attestation conveyance preference

Link copied to clipboard

Criteria for authenticator selection

Link copied to clipboard

Base64url-encoded challenge from the relying party

Link copied to clipboard

Credentials to exclude from registration

Link copied to clipboard

Supported public key algorithms

Link copied to clipboard

Relying party identifier (domain)

Link copied to clipboard

Human-readable relying party name

Link copied to clipboard

Timeout in milliseconds for the operation

Link copied to clipboard

Human-readable user display name

Link copied to clipboard

Base64url-encoded user identifier

Link copied to clipboard

User account identifier (e.g., account handle)