UNPKG

autumn-js

Version:
20 lines (17 loc) 447 B
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 };