Commit 48cc8380 by gdj

fix: 修复token exp3秒过期bug

parent 1aa1e07d
......@@ -105,7 +105,8 @@ public class JwtUtil {
}
if (Objects.nonNull(age)) {
builder.withExpiresAt(new Date(now.getTime() + age));
// fix: 修复token exp3秒过期bug
builder.withExpiresAt(new Date(now.getTime() + age * 1000));
}
String token = builder
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment