Skip to main content

Customer

Access the global customer object with useCustomer. Will contain basic details of the current customer, if logged in.

const customer = useCustomer();

/**
* Customer type:
* {
* id: string;
* email?: string | null | undefined;
* firstName?: string | null | undefined;
* lastName?: string | null | undefined;
* phone?: string | null | undefined;
* } | null
*/