autumnHandler creates server-side endpoints that handle communication between your frontend React hooks and Autumn’s API. It manages customer authentication and data flow for all Autumn operations.
Parameters
Function that receives the incoming request and returns customer identification data. This function should extract the user/customer ID from your authentication provider and return both the ID and optional customer metadata.
Override the default Autumn API base URL (api.useautumn.com/v1). Use this when self-hosting Autumn or when you need to connect to a different API endpoint.
Override the Autumn secret key. If not provided, the handler will use the
AUTUMN_SECRET_KEY environment variable.If true, suppresses console warnings and logs from the Autumn handler. Useful for reducing noise in production environments.

