next-auth
Version:
Authentication for Next.js
15 lines (14 loc) • 482 B
TypeScript
import type { InternalOptions } from "../../lib/types";
import type { OutgoingResponse } from "..";
import type { Session } from "../..";
import type { SessionStore } from "../lib/cookie";
interface SessionParams {
options: InternalOptions;
sessionStore: SessionStore;
}
/**
* Return a session object (without any private fields)
* for Single Page App clients
*/
export default function session(params: SessionParams): Promise<OutgoingResponse<Session | {}>>;
export {};