autumn-js
Version:
Autumn JS Library
16 lines (13 loc) • 382 B
TypeScript
import { AuthResult } from './utils/AuthFunction.js';
declare function autumnHandler(options: {
secretKey?: string;
identify: (args: {
request: Request;
params: Record<string, string>;
}) => AuthResult;
version?: string;
}): {
loader: (args: any) => Promise<Response>;
action: (args: any) => Promise<Response>;
};
export { autumnHandler };