Skip to content

CustomerModule

Module in @evolve-framework/medusa

The customer's own account: profile and address book.

Every operation here acts as the signed-in customer, so reading or changing someone else's account is impossible by construction — Medusa resolves which customer from the token, and the token is the shopper's own. There is no customer id to pass and therefore none to tamper with.

import { CustomerModule } from "@evolve-framework/medusa/modules";

Serves the Customer part of the GraphQL API: customer, customerExists, customerAddressCreate, customerAddressDelete, customerAddressUpdate, customerCreate, customerDefaultAddressUpdate, customerDelete, customerEmailUpdate, customerInformationUpdate, customerNotificationPreferencesUpdate, customerPersonalDetailsUpdate.

new CustomerModule()

Extends AbstractModule<unknown>.

The same module on commercetools and sfcc.