Skip to main content
The customer service exposes the signed-in customer. The service exposes one reactive signal and one fetch method.

Setup

Shape

Reactive state

current is null until a successful call to getCurrent() populates it. After that, every block that reads it updates automatically.

Example: greeting block

Custom metadata

The metadata field is a free-form record. Adapters can populate it with store-specific fields (loyalty tier, plan flags) without changing the service interface.