CreateCredentialResult

@Serializable
data class CreateCredentialResult(val credentialId: String, val rawId: String, val type: String = "public-key", val authenticatorAttachment: String? = null, val clientDataJSON: String, val attestationObject: String, val transports: List<String>? = null, val publicKey: String? = null, val publicKeyAlgorithm: Long? = null)

Result from PasskeyClient.createCredential(). Contains the raw WebAuthn response data from registration.

Constructors

Link copied to clipboard
constructor(credentialId: String, rawId: String, type: String = "public-key", authenticatorAttachment: String? = null, clientDataJSON: String, attestationObject: String, transports: List<String>? = null, publicKey: String? = null, publicKeyAlgorithm: Long? = null)

Properties

Link copied to clipboard

Base64url-encoded attestation object (CBOR)

Link copied to clipboard

Authenticator attachment modality

Link copied to clipboard

Base64url-encoded client data JSON

Link copied to clipboard

Base64url-encoded credential identifier

Link copied to clipboard

Base64url-encoded COSE public key (Android only)

Link copied to clipboard

COSE algorithm identifier for the public key

Link copied to clipboard

Base64url-encoded raw credential ID (same as credentialId)

Link copied to clipboard

Supported transports for this credential

Link copied to clipboard

Credential type, always "public-key"