Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Passkeys

Passkey and WebAuthn credentials

Use the webauthn client to register and authenticate passkeys (WebAuthn credentials).

Build registration and authentication ceremonies with the options and verification methods below.

clientWebAuthnhttps://github.com/scalekit-inc/scalekit-sdk-node/blob/main/src/webauthn.ts
#asynclistCredentials

List all WebAuthn credentials for a user

paramuserIdstring

The user ID to list credentials for

returnsListCredentialsResponse

Paginated credentials.

const response = await scalekit.webauthn.listCredentials('usr_123456');
console.log('Credentials:', response.credentials);
clientWebAuthnhttps://github.com/scalekit-inc/scalekit-sdk-node/blob/main/src/webauthn.ts
#asyncupdateCredential

Update a WebAuthn credential’s display name

paramcredentialIdstring

The credential ID to update

paramdisplayNamestring

The new display name for the credential

returnsUpdateCredentialResponse

The updated resource.

const response = await scalekit.webauthn.updateCredential(
'cred_123',
'My YubiKey'
);
clientWebAuthnhttps://github.com/scalekit-inc/scalekit-sdk-node/blob/main/src/webauthn.ts
#asyncdeleteCredential

Delete a WebAuthn credential

paramcredentialIdstring

The credential ID to delete

returnsDeleteCredentialResponse

Empty on success.

const response = await scalekit.webauthn.deleteCredential('cred_123');
console.log('Deleted:', response.success);