mirror of
https://github.com/chillzhuang/blade-tool
synced 2025-04-04 03:47:22 +08:00
🐛 修复 github #16 JWT无法设置过长失效时间
This commit is contained in:
parent
e0e633286f
commit
0ac7fb6ab7
@ -468,7 +468,7 @@ public class SecureUtil {
|
||||
// 组装Token信息
|
||||
TokenInfo tokenInfo = new TokenInfo();
|
||||
tokenInfo.setToken(builder.compact());
|
||||
tokenInfo.setExpire((int) expireMillis / 1000);
|
||||
tokenInfo.setExpire((int) (expireMillis / 1000));
|
||||
|
||||
return tokenInfo;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user