Browse Source

🐛 fix(jwt): 修复JWT工具类型错误

- 修复SignOptions.expiresIn类型转换错误
- 使用正确的类型断言解决TypeScript类型问题
- 确保项目构建成功

🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 4 tháng trước cách đây
mục cha
commit
561f6431d3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/server/utils/jwt.util.ts

+ 1 - 1
src/server/utils/jwt.util.ts

@@ -39,7 +39,7 @@ export class JWTUtil {
 
     try {
       const options: SignOptions = {
-        expiresIn: expiresIn || JWT_EXPIRES_IN as SignOptions['expiresIn']
+        expiresIn: (expiresIn || JWT_EXPIRES_IN) as SignOptions['expiresIn']
       };
       return jwt.sign(payload, JWT_SECRET, options);
     } catch (error) {