Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
16daf483
Commit
16daf483
authored
Jul 14, 2026
by
Lizh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: TokenHandle.createToken 移除重复的 Keys.hmacShaKeyFor 调用
Co-Authored-By: Claude <noreply@anthropic.com>
parent
4c3e214f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletions
+0
-1
custom-server-core/src/main/java/com/jomalls/custom/security/TokenHandle.java
+0
-1
No files found.
custom-server-core/src/main/java/com/jomalls/custom/security/TokenHandle.java
View file @
16daf483
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment