Updating passkeys on a user's device (updateUserDetails)
Becomes…
Updating the username on the device
Section titled “Updating the username on the device”Use the updateUserDetails function in your frontend code to perform local (device) updates:
import { isPasskeyUpdateSupport, updateUserDetails} from "@passlock/client";
const username = "newUsername@example.com";const displayName = "My new username";
if (isPasskeyUpdateSupport()) { // this will update the names in the user's password manager await updateUserDetails({ tenancyId, passkeyId, username, displayName });}