Passkeys
Passkey and WebAuthn credentials
Use scalekitClient.webAuthn() to register and authenticate passkeys (WebAuthn credentials).
Build registration and authentication ceremonies with the options and verification methods below.
listCredentials
Section titled “listCredentials”#asynclistCredentials
Lists all WebAuthn credentials for a user
paramuserIdString
The ID of the user whose credentials to list
returnsListCredentialsResponse
Paginated results.
scalekitClient.webAuthn().listCredentials("user_123");updateCredential
Section titled “updateCredential”#asyncupdateCredential
Updates a WebAuthn credential’s display name
paramcredentialIdString
The ID of the credential to update
paramdisplayNameString
The new display name for the credential
returnsUpdateCredentialResponse
The updated resource.
scalekitClient.webAuthn().updateCredential("cred_123", "My laptop key");deleteCredential
Section titled “deleteCredential”#asyncdeleteCredential
Deletes a WebAuthn credential
paramcredentialIdString
The ID of the credential to delete
returnsDeleteCredentialResponse
Empty on success.
scalekitClient.webAuthn().deleteCredential("cred_123");