Skip to main content
The 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.
Learn how to setup Autumn hooks in the Getting Started guide.

Parameters

identify
(request: any) => AuthResult
required
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.
url
string
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.
secretKey
string
Override the Autumn secret key. If not provided, the handler will use the AUTUMN_SECRET_KEY environment variable.
suppressLogs
boolean
If true, suppresses console warnings and logs from the Autumn handler. Useful for reducing noise in production environments.