Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Passkeys

Passkey and WebAuthn credentials

Use scalekit_client.webauthn 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-python/blob/main/scalekit/webauthn.py
#list_credentials

Method to list WebAuthn credentials for a user

paramuser_idstr

User ID to list credentials for

returnswebauthn_pb2.ListCredentialsResponse

Tuple of (ListCredentialsResponse, grpc.Call metadata)

response = scalekit_client.webauthn.list_credentials('usr_123456')
print(f'Credentials: {response[0].credentials}')
clientWebAuthnhttps://github.com/scalekit-inc/scalekit-sdk-python/blob/main/scalekit/webauthn.py
#update_credential

Method to update a WebAuthn credential’s display name

paramcredential_idstr

Credential ID to update

paramdisplay_namestr

New display name for the credential

returnswebauthn_pb2.UpdateCredentialResponse

Tuple of (UpdateCredentialResponse, grpc.Call metadata)

response = scalekit_client.webauthn.update_credential(
'cred_123',
'My YubiKey'
)
clientWebAuthnhttps://github.com/scalekit-inc/scalekit-sdk-python/blob/main/scalekit/webauthn.py
#delete_credential

Method to delete a WebAuthn credential

paramcredential_idstr

Credential ID to delete

returnswebauthn_pb2.DeleteCredentialResponse

Tuple of (DeleteCredentialResponse, grpc.Call metadata)

response = scalekit_client.webauthn.delete_credential('cred_123')
print(f'Deleted: {response[0].success}')