fix: set to default model in searchPlaceholderConversation

fix: set max auth cookie to 7 days
This commit is contained in:
Wentao Lyu 2023-03-29 01:26:58 +08:00
parent f595cb2aa1
commit 319e4f0f95
2 changed files with 6 additions and 5 deletions

View file

@ -29,7 +29,8 @@ const projectPath = path.join(__dirname, '..', '..', 'client');
session({
secret: 'chatgpt-clone-random-secrect',
resave: false,
saveUninitialized: true
saveUninitialized: true,
cookie: { maxAge: 7 * 24 * 60 * 60 * 1000 } // 7 days
})
);