瀏覽代碼

去掉失效时间

hcst_sunzhen 4 年之前
父節點
當前提交
3821bd2329
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/cn/com/ctop/okr/utils/JwtUtil.java

+ 1 - 1
src/main/java/cn/com/ctop/okr/utils/JwtUtil.java

@@ -67,7 +67,7 @@ public class JwtUtil {
         Date date = new Date(System.currentTimeMillis() + EXPIRE_TIME);
         Algorithm algorithm = Algorithm.HMAC256(secret);
         // 附带username信息
-        return JWT.create().withClaim("username", username).withExpiresAt(date).sign(algorithm);
+        return JWT.create().withClaim("username", username).sign(algorithm);  //.withExpiresAt(date)
 
     }