Skip to content

Commit

Permalink
Merge pull request #365 from RagingCactus/session-timeout-fix
Browse files Browse the repository at this point in the history
Respect COOKIE_VALIDITY_MS setting in production
  • Loading branch information
Yooooomi authored Mar 10, 2024
2 parents eab499e + 4688d08 commit ca773fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/routes/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ router.get("/spotify/callback", withGlobalPreferences, async (req, res) => {
{ userId: user._id.toString() },
privateData.jwtPrivateKey,
{
expiresIn: "1h",
expiresIn: getWithDefault("COOKIE_VALIDITY_MS", "1h"),
},
);
res.cookie("token", token);
Expand Down

0 comments on commit ca773fd

Please sign in to comment.