Skip to content

Commit

Permalink
[#111] Fix: hide secretKey in JwtService (#122)
Browse files Browse the repository at this point in the history
* refactor : LastModifiedDate KST

* feat : adminLogin

* fix : Admin authentication

* fix : hide secretKey in JwtService

---------

Co-authored-by: KimTaeWook <[email protected]>
  • Loading branch information
xodnz and KimTaeWook authored Jun 9, 2024
1 parent 256bbc9 commit 051b12c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private static Date createExpireDateForAccessToken() {
}

private static Key createSigningKey() {
byte[] keyBytes = Base64.getDecoder().decode("aS1kZWFyLXN5bmNkLXNlY3JldC1rZXktaS1kZWFyLXN5bmNkLXNlY3JldC1rZXk=");
byte[] keyBytes = Base64.getDecoder().decode(accessTokenSecretKey);
return new SecretKeySpec(keyBytes, SignatureAlgorithm.HS256.getJcaName());
}

Expand Down

0 comments on commit 051b12c

Please sign in to comment.