Factory function type for creating session store instances. Used by the session manager to instantiate stores per HTTP request.
HTTP context for the current request
Session configuration
const storeFactory: SessionStoreFactory = (ctx, sessionConfig) => { return new CustomStore({ connection: ctx.database, maxAge: sessionConfig.age })} Copy
const storeFactory: SessionStoreFactory = (ctx, sessionConfig) => { return new CustomStore({ connection: ctx.database, maxAge: sessionConfig.age })}
Factory function type for creating session store instances. Used by the session manager to instantiate stores per HTTP request.