@lucia-auth/sveltekit
Version:
SvelteKit integration for Lucia
10 lines (9 loc) • 433 B
TypeScript
import type { RequestEvent } from "./types.js";
import type { PageData } from "../types.js";
type LoadEvent = RequestEvent & {
parent: any;
depends: any;
};
type HandleServerSession = <LoadFn extends (event: any) => any = () => Promise<{}>>(serverLoad?: LoadFn) => (event: LoadEvent) => Promise<Exclude<Awaited<ReturnType<LoadFn>>, void> & PageData>;
export declare const handleServerSession: HandleServerSession;
export {};