Passkey

@Serializable
data class Passkey(val id: String, val name: String, val verification: Verification? = null, val createdAt: Long, val updatedAt: Long, val lastUsedAt: Long? = null)

An object that represents a passkey associated with a user.

Passkeys are a modern, secure authentication method that uses cryptographic key pairs to authenticate users without requiring passwords. They provide a phishing-resistant authentication experience using biometrics, device PINs, or other local authentication methods.

Constructors

Link copied to clipboard
constructor(id: String, name: String, verification: Verification? = null, createdAt: Long, updatedAt: Long, lastUsedAt: Long? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The date when the passkey was created.

Link copied to clipboard
val id: String

The unique identifier of the passkey.

Link copied to clipboard
val lastUsedAt: Long? = null

The date when the passkey was last used.

Link copied to clipboard

The passkey's name.

Link copied to clipboard

The date when the passkey was last updated.

Link copied to clipboard

The verification details for the passkey.

Functions

Link copied to clipboard

Attempts to verify this passkey using the provided public key credential.

Link copied to clipboard

Deletes this passkey from the user's account.

Link copied to clipboard

Updates the properties of this passkey.