Skip to content

Commit 8b8b089

Browse files
committed
feat(auth): extend session lifetime
1 parent 77a7103 commit 8b8b089

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/api/auth.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function createSessionJWT(uuid) {
4646
.setIssuedAt()
4747
.setIssuer(JWT_COOKIE_DOMAIN)
4848
.setAudience(JWT_COOKIE_DOMAIN)
49-
.setExpirationTime('24h')
49+
.setExpirationTime('3d')
5050
.sign(JWT_SECRET);
5151
}
5252

@@ -77,6 +77,7 @@ async function createAndAttachLocalSession(res, uuid) {
7777
const prodCookieConfig = {
7878
secure: true,
7979
domain: JWT_COOKIE_DOMAIN,
80+
maxAge: 3 * 24 * 60 * 60 * 1000, // 3 days
8081
};
8182
res.cookie('conductor_access', access, {
8283
path: '/',

0 commit comments

Comments
 (0)