autumn-js
Version:
Autumn JS Library
20 lines (17 loc) • 447 B
TypeScript
type AuthResult = Promise<{
customerId?: string;
customerData?: {
name?: string;
email?: string;
};
} | null>;
declare function autumnHandler(options: {
identify: (request: any) => AuthResult;
url?: string;
secretKey?: string;
suppressLogs?: boolean;
}): {
GET: (request: any, response?: any) => Promise<any>;
POST: (request: any, response?: any) => Promise<any>;
};
export { autumnHandler };