feat: token 令牌

This commit is contained in:
ilhamtahir committed 2024-11-17 14:51:09 +08:00
1 parent a2ee53f83a
commit ec0e6867ee
12 files changed
+408 -7

No files matched your search

+2 -2
View File
@@ -1,2 +1,2 @@
export const JWT_SECRET = 'jwtSecret';
export const JWT_EXPIRATION = '1h';
export const JWT_SECRET = process.env.JWT_SECRET || 'default-secret';
export const JWT_EXPIRATION = process.env.JWT_EXPIRATION || '24000s';