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