Commit 16daf483 by Lizh

fix: TokenHandle.createToken 移除重复的 Keys.hmacShaKeyFor 调用

Co-Authored-By: Claude <noreply@anthropic.com>
parent 4c3e214f
...@@ -252,7 +252,6 @@ public class TokenHandle { ...@@ -252,7 +252,6 @@ public class TokenHandle {
// 生成 JWT // 生成 JWT
byte[] keyBytes = secret.getBytes(java.nio.charset.StandardCharsets.UTF_8); byte[] keyBytes = secret.getBytes(java.nio.charset.StandardCharsets.UTF_8);
Keys.hmacShaKeyFor(keyBytes);
SecretKey signingKey = Keys.hmacShaKeyFor(keyBytes); SecretKey signingKey = Keys.hmacShaKeyFor(keyBytes);
return Jwts.builder() return Jwts.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