@light-auth/core
Version:
light auth core framework agnostic, using arctic
10 lines (9 loc) • 586 B
TypeScript
import { type LightAuthConfig, type BaseResponse, type LightAuthSession, type LightAuthUser } from "../models";
/**
* Creates the HTTP handlers (get, set) function for LightAuth.
* @param config The LightAuth configuration object.
* @returns An HTTP handler function that processes requests and responses.
*/
export declare function createHttpHandlerFunction<Session extends LightAuthSession = LightAuthSession, User extends LightAuthUser<Session> = LightAuthUser<Session>>(config: LightAuthConfig<Session, User>): (args?: {
[key: string]: unknown;
}) => Promise<BaseResponse>;