autumn-js
Version:
Autumn JS Library
16 lines (13 loc) • 568 B
TypeScript
import { A as AuthResult } from '../authTypes-jU7ON-I5.js';
type FetchAutumnHandlerOptions = {
/** Function to identify the customer from the request */
identify: (request: Request) => AuthResult;
/** Autumn API secret key */
secretKey?: string;
/** Autumn API URL */
autumnURL?: string;
/** Path prefix for routes (default: "/api/autumn") */
pathPrefix?: string;
};
declare function autumnHandler(options: FetchAutumnHandlerOptions): (request: Request) => Promise<Response>;
export { type FetchAutumnHandlerOptions, autumnHandler };