Browse Source

feat(server): extend jwt expiration (#1187)

Jason Rasmussen 2 năm trước cách đây
mục cha
commit
c27c89a680
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/apps/immich/src/config/jwt.config.ts

+ 1 - 1
server/apps/immich/src/config/jwt.config.ts

@@ -3,5 +3,5 @@ import { jwtSecret } from '../constants/jwt.constant';
 
 export const jwtConfig: JwtModuleOptions = {
   secret: jwtSecret,
-  signOptions: { expiresIn: '7d' },
+  signOptions: { expiresIn: '30d' },
 };