customer.init(), login(), register(), get(), and update().
Returns
ShopifyCustomer | null — the cached customer, or null if no customer is logged in.
See ShopifyCustomer for the full shape.
Examples
Synchronous access for SSR-style rendering
Avoiding a redundant network call
The cache is populated when the SDK initializes a logged-in session. For the freshest data from Shopify, use
customer.get() instead.