增加JWT逻辑

This commit is contained in:
2025-07-09 10:15:07 +08:00
parent a9c5d91e56
commit 6b1ff4e408
5 changed files with 161 additions and 3 deletions

View File

@ -26,5 +26,8 @@ module.exports = {
reconnectStrategy: (retries) => Math.min(retries * 100, 5000)
},
ttl: 86400
},
jwt: {
jwtSecret: process.env.JWT_SECRET || 'jwt_secret',
}
};