@sanpuru/prisma-session-store
Version:
Prisma express-session store
12 lines (11 loc) • 530 B
TypeScript
/// <reference types="express-serve-static-core" />
/// <reference types="express-session" />
import type { PartialDeep } from 'type-fest';
import type { IOptions } from '../../@types';
/**
* Determines the TTL (Time to Live) for a given session with given options
* @param options the options to determine the TTL
* @param session the session data
* @param sid the id of the current session
*/
export declare const getTTL: (options: Pick<IOptions, 'ttl'>, session: PartialDeep<Express.SessionData>, sid: string) => number;