PasskeyRegistration

class PasskeyRegistration(val json: String, val credentialId: String, val transports: List<String>, val authenticatorAttachment: String?, val prfEnabled: Boolean? = null, val prf: PrfResults? = null, val largeBlobSupported: Boolean? = null, val rpId: String)

Result of Passkeys.register. Send json to the server. Instances are created by PassKi; the constructor is internal API so fields can be added without breaking binaries.

Constructors

Link copied to clipboard
constructor(json: String, credentialId: String, transports: List<String>, authenticatorAttachment: String?, prfEnabled: Boolean? = null, prf: PrfResults? = null, largeBlobSupported: Boolean? = null, rpId: String)

Properties

Link copied to clipboard

"platform" or "cross-platform" when known, otherwise null.

Link copied to clipboard

The new credential's id, base64url.

Link copied to clipboard

The WebAuthn registration response JSON, ready to POST to your server.

Link copied to clipboard

Whether the new passkey has large-blob storage, when it was requested (PasskeyExtensions.withLargeBlob); null if not requested or the platform did not answer.

Link copied to clipboard

PRF results, when salts were given at registration and the provider evaluated them; otherwise null.

Link copied to clipboard

Whether the new passkey supports the prf extension, when it was requested (PasskeyExtensions.withPrf); null if not requested or the platform did not answer.

Link copied to clipboard

The RP ID this ceremony ran for: the options' RP ID, or on the web the page's host when the options name none. Pass it to PasskeySignals calls instead of parsing the options again.

Link copied to clipboard

Transports the authenticator reported (e.g. "internal", "hybrid"); may be empty.

Functions

Link copied to clipboard
open override fun toString(): String