fix: change jwt expiry time to config

* rename dockerfile env
This commit is contained in:
wancat committed 2023-09-01 13:54:51 +08:00
1 parent 8b5f7175a7
commit de8d49aea3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ export function genSessionJWT(session) {
jwt.sign(
{ session_id: session.id },
config.jwtSecret,
{ expiresIn: '1h' },
{ expiresIn: config.expiry },
(err, token) => {
if (err) {
reject(err)