PublicKeyCredentialRequestOptions

@Serializable
data class PublicKeyCredentialRequestOptions(val challenge: String, val rpId: String, val timeout: Long = 60000, val userVerification: String = "required", val allowCredentials: List<CredentialDescriptor> = emptyList(), val extensions: WebAuthnExtensions? = null)

WebAuthn credential request options for passkey authentication. Matches the WebAuthn PublicKeyCredentialRequestOptions structure.

Constructors

Link copied to clipboard
constructor(challenge: String, rpId: String, timeout: Long = 60000, userVerification: String = "required", allowCredentials: List<CredentialDescriptor> = emptyList(), extensions: WebAuthnExtensions? = null)

Properties

Link copied to clipboard

Credentials allowed for authentication

Link copied to clipboard

Base64url-encoded challenge from the relying party

Link copied to clipboard

WebAuthn extensions (e.g., PRF)

Link copied to clipboard

Relying party identifier (domain)

Link copied to clipboard

Timeout in milliseconds for the operation

Link copied to clipboard

User verification requirement