Skip to main content

upsert_identity_account

Function upsert_identity_account 

Source
pub(super) fn upsert_identity_account(
    mstore: &Store,
    identity_store: &Store,
    broker: &Broker,
    data: Value,
) -> Result<IdentityAccount, String>
Expand description

Accepts the full IdentityAccount payload. A missing id mints a fresh UUID; created_at and updated_at are server-set so callers don’t have to know the current time.