mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 11:10:11 +08:00
feat: update swagger, secure cookie
This commit is contained in:
1 parent
d939b7eb4d
commit
d745531a14
5 files changed
+26
-4
No files matched your search
@@ -24,7 +24,7 @@ export function genJWT(payload) {
|
||||
jwt.sign(
|
||||
payload,
|
||||
config.jwtSecret,
|
||||
{ expiresIn: config.expiry },
|
||||
{ expiresIn: config.containerExpiry },
|
||||
(err, token) => {
|
||||
if (err) {
|
||||
reject(err)
|
||||
|
||||
Reference in new issue
Block a user