autumn-js
Version:
Autumn JS Library
19 lines (16 loc) • 419 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;
}): {
GET: (request: any, response?: any) => Promise<any>;
POST: (request: any, response?: any) => Promise<any>;
};
export { autumnHandler };