提交 847cd493 编写于 作者: Tyl666's avatar Tyl666

【JWT鉴权续期接口】Token过期时间设置为2分钟

上级 36e886b8
...@@ -345,7 +345,7 @@ public class UAACoreService { ...@@ -345,7 +345,7 @@ public class UAACoreService {
} }
public boolean isExpired(Token tok,Long expiration){ public boolean isExpired(Token tok,Long expiration){
if (System.currentTimeMillis() - tok.getDate().getTime() >= (expiration / 4)) { if (System.currentTimeMillis() - tok.getDate().getTime() >= (120000)) {
return true; return true;
} }
return false; return false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册