Documentation / zerotal / session / SessionConfig
Function: SessionConfig()
SessionConfig(
options?):SessionConfigShape
Defined in: packages/session/src/config.ts:48
Create a typed session configuration object, deep-merging options over the
package defaults. Use it as the default export of config/session.ts.
Parameters
options?
Partial<SessionConfigShape> = {}
Partial overrides; any omitted field keeps its default.
Returns
A fully populated SessionConfigShape.
Example
import { SessionConfig } from '@zerotal/session';
export default SessionConfig({ lifetime: 3600, cookie: 'app_session' });