Skip to content

Commit

Permalink
clean up main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Mar 8, 2024
1 parent 928022b commit eab2019
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ async function setupSession(app: NestExpressApplication) {
app.set('trust proxy', 1);
}

const sessionSecret = Utils.isTest() ? 'keyboard cat' : process.env.SESSION_SECRET;

app.use(
session({
store: redisStore,
secret: Utils.isTest() ? 'keyboard cat' : process.env.SESSION_SECRET,
secret: sessionSecret,
resave: false,
saveUninitialized: false,
cookie: {
Expand Down

0 comments on commit eab2019

Please sign in to comment.