Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 874585f

Browse files
committed
increase maxage
increase maxage
1 parent 65847bc commit 874585f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

server.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ app.prepare()
4141
secret: 'somerandonstuffs',
4242
resave: false,
4343
saveUninitialized: false,
44-
cookie: { maxAge: 30 * 24 * 60 }
44+
cookie: {
45+
maxAge: 30 * 24 * 60 * 60 * 1000
46+
}
4547
}))
4648

4749
server.use(healthCheck.middleware([() => true]))
@@ -75,9 +77,6 @@ app.prepare()
7577
server.post('/login', async (req, res) => {
7678
let username = req.body.username
7779
let password = req.body.password
78-
console.log('totest adminUser', adminUser)
79-
console.log('totest username', username)
80-
console.log('totest password', password)
8180
if (
8281
username !== adminUser.username ||
8382
password !== adminUser.password ||

0 commit comments

Comments
 (0)