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
Related Methods
| Method | Description |
|---|---|
.getCached() | Get cached customer data synchronously |
.isLoggedIn() | Check if customer is logged in (sync) |
.getToken() | Get the raw access token |