Skip to content

Commit

Permalink
chore: update maxAge cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Myphz committed Dec 3, 2023
1 parent 695c7b1 commit 472e025
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/config/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ app.use(cookieParser());

// Enable if you're behind a reverse proxy (Heroku, Bluemix, AWS ELB, Nginx, etc)
// For express-rate-limit
// if (process.env.NODE_ENV === "production") {
// app.set("trust proxy", 2);
// }
if (process.env.NODE_ENV === "production") {
app.set("trust proxy", 2);
}

export default app;
2 changes: 1 addition & 1 deletion src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const COOKIE_OPTS = {
secure: true,
httpOnly: true,
overwrite: true,
maxAge: 14 * 24 * 60 * 60 * 1000, // 14 days
maxAge: 365 * 24 * 60 * 60 * 1000, // 365 days
sameSite: "Lax",
};

Expand Down

0 comments on commit 472e025

Please sign in to comment.