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.
list_credentials
Section titled “list_credentials”#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}')update_credential
Section titled “update_credential”#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')delete_credential
Section titled “delete_credential”#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}')