UNPKG

autumn-js

Version:
19 lines (16 loc) 419 B
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 };