mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 06:24:21 -05:00
fix(session-middleware): don't hardcode database ttl
The cookie expiration is taken from the config, but the expiration of session data in the database was hardcoded. This removes the hardcoded value, so TypeormStore defaults to cookie.maxAge. References: https://github.com/nykula/connect-typeorm#options https://github.com/expressjs/session#cookiemaxage Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
cf5c398933
commit
931a168e5d
1 changed files with 0 additions and 1 deletions
|
@ -32,7 +32,6 @@ export function setupSessionMiddleware(
|
|||
saveUninitialized: false,
|
||||
store: new TypeormStore({
|
||||
cleanupLimit: 2,
|
||||
ttl: 86400,
|
||||
}).connect(app.get<Repository<Session>>(getRepositoryToken(Session))),
|
||||
}),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue