@bolttech/server-side-next
Version:
This library was generated with [Nx](https://nx.dev).
18 lines (17 loc) • 739 B
TypeScript
/// <reference types="node" />
/// <reference types="node/http" />
/// <reference types="got/dist/source/core/utils/timed-out" />
import { Session } from '@bolttech/essentials';
export declare type Cookie = {
httpOnly: boolean;
path: string;
domain?: string | undefined;
secure: boolean;
sameSite?: boolean | 'lax' | 'strict' | 'none';
maxAge?: number;
expires?: Date;
};
export declare const COOKIE_KEY = "connect.sid";
export declare const getSession: (req: import("http").IncomingMessage & {
session?: import("next-session/lib/types").Session<Session>;
}, res: import("http").ServerResponse<import("http").IncomingMessage>) => Promise<import("next-session/lib/types").Session<Session>>;