Skip to main content
The SDK supports multiple authentication modes depending on your use case. For a full overview of the API authentication methods, see the Store API Authentication reference.

Publishable Key Only (Guest/Public Access)

Use a publishable API key for public endpoints like browsing products:

Publishable Key + JWT (Authenticated Customer)

For authenticated customer actions like viewing orders or managing addresses:

Register New Customer

Guest Checkout

For guest checkout, use the token returned when creating a cart. The SDK automatically sends it via the x-spree-token header: