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.
ListCredentials
Section titled “ListCredentials”#asyncListCredentials
ListCredentials retrieves all registered passkeys for a user
paramctxcontext.Context
Request context
paramuserIdstring
Scalekit user ID (usr_...).
returnsListCredentialsResponse
Paginated results.
UpdateCredential
Section titled “UpdateCredential”#asyncUpdateCredential
UpdateCredential updates the display name of a passkey credential
paramctxcontext.Context
Request context
paramcredentialIdstring
Credential id.
paramdisplayNamestring
Display name.
returnsUpdateCredentialResponse
The updated resource.
DeleteCredential
Section titled “DeleteCredential”#asyncDeleteCredential
DeleteCredential deletes a specific passkey credential
paramctxcontext.Context
Request context
paramcredentialIdstring
Credential id.
returnsDeleteCredentialResponse
Empty on success.