Skip to content

Commit 3793551

Browse files
atrakhConvex, Inc.
authored andcommitted
dashboard: set max-age on session cookies (#40955)
GitOrigin-RevId: da9fdc3955e8208769910a4b23f1992505ea3aa5
1 parent 8c69787 commit 3793551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-packages/dashboard/src/pages/api/auth/callback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default async function handler(
5656
process.env.NODE_ENV === "production" ? " Secure;" : "";
5757
res.setHeader(
5858
"Set-Cookie",
59-
`wos-session=${sealedSession}; Path=/; HttpOnly;${secure} SameSite=Lax`,
59+
`wos-session=${sealedSession}; Path=/; HttpOnly;${secure} SameSite=Lax; Max-Age=${60 * 60 * 24 * 14}`,
6060
);
6161

6262
// Use the information in `user` for further business logic.

0 commit comments

Comments
 (0)