Skip to main content
Fetches the current customer’s profile data from Shopify. Requires the customer to be logged in.

Returns

Promise<ShopifyCustomer> - The customer object with profile data.

Throws

  • Error - If not logged in or token is invalid.

Examples

Get customer profile

Display account info

Sync vs Async access