Skip to Content

The WebauthnCredential type of the TypeScript SDK, which securityKeys.finishRegistration and securityKeys.list take or answer.

type WebauthnCredential = {
  createdAt: number
  id: string
  lastUsedAt: number | null
  name: string | null
  rpId: string
  transports: string[] | null
}

Fields

FieldTypeDescription
createdAtnumberEnrollment timestamp in epoch seconds
idstringUnique WebAuthn credential ULID
lastUsedAtnumber | nullTimestamp when key was last used for authentication, or null
namestring | nullUser-assigned name for the security key or passkey
rpIdstringRelying party ID (hostname) the key is bound to
transportsstring[] | nullSupported authenticator transports (usb, nfc, ble, internal)

Used by

MethodWhat it does
securityKeys.finishRegistrationFinish WebAuthn security key registration
securityKeys.listList enrolled WebAuthn security keys

On this page