Skip to content

Commit

Permalink
Remove duplicate session setup; use only RedisSession
Browse files Browse the repository at this point in the history
  • Loading branch information
hsalokor authored and MikkoKauhanen committed Jan 7, 2025
1 parent ff3c594 commit b4df9ee
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions aoe-web-backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ app.use(flash());
app.use(morganLogger);

// Initialize session management and OIDC authorization
app.use(
session({
resave: config.SESSION_CONFIG_OPTIONS.resave as boolean,
saveUninitialized: config.SESSION_CONFIG_OPTIONS.saveUninitialized as boolean,
secret: config.SESSION_CONFIG_OPTIONS.secret as string,
store: new MemoryStore({ checkPeriod: 86400000 }), // Prune expired entries every 24h
} as SessionOptions),
);
oidc.sessionInit(app);
oidc.authInit(app);

Expand Down

0 comments on commit b4df9ee

Please sign in to comment.