@light-auth/core
Version:
light auth core framework agnostic, using arctic
9 lines (8 loc) • 427 B
TypeScript
import { type LightAuthConfig, type LightAuthSession, type LightAuthUser } from "../models";
/**
* get session handler available on endpoint /${basePath}/session
*/
export declare function getSessionHandler<Session extends LightAuthSession = LightAuthSession, User extends LightAuthUser<Session> = LightAuthUser<Session>>(args: {
config: LightAuthConfig<Session, User>;
[key: string]: unknown;
}): Promise<Response>;