Getting started
1. Install
bash
Copy
2. Create the client
Use a publishable key for browser/mobile clients. Never ship a secret API key to the storefront.
ts
Copy
3. Auth modes
Use JWT mode (default) for SPAs that store a bearer token client-side.
Use session mode when the API exchanges the token for an HTTP-only cookie — set fetchCredentials: "include" when the API is on another origin.
ts
Copy
4. List products
GET /store/:storeCode/products
First Store API call via the SDK.
ts
Copy
For a full walkthrough of listing products, carts, checkout, and customer accounts, see Storefront Development. For React Native and Expo, see Mobile Development.