Updating Users

lucraClient.sendMessage.userUpdated(...)

Updates user information in Lucra. This data is persisted and used to pre-fill forms for Identity Verification and other user flows. Typically called when user information changes in your application.

Example payload:

lucraClient.sendMessage.userUpdated({
  username: "johndoe",
  email: "[email protected]",
  phoneNumber: "+1234567890",
  firstName: "John",
  lastName: "Doe",
  avatarURL: "https://example.com/avatar.jpg",
  address: {
    address: "123 Main St",
    addressCont: "Apt 4B",
    city: "New York",
    state: "NY",
    zip: "10001"
  },
  metadata: {
    externalId: "your_user_123",
    customField: "..."
  }
});

Last updated