mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: change jwt expiry time to config
* rename dockerfile env
This commit is contained in:
1 parent
8b5f7175a7
commit
de8d49aea3
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user