Skip to content

Commit

Permalink
chore: jwtProvider ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Oct 30, 2024
1 parent 2a62c3c commit 231bd4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
@RequiredArgsConstructor
@Component
public class SecretKeyFactory {
@Value("${JWT_SECRET_KEY}")
@Value("${jwt.secret_key}")
private String secretKey;


public SecretKey createSecretKey() {
byte[] keyBytes = secretKey.getBytes();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public class JwtProvider {

private final SecretKeyFactory secretKeyFactory;

@Value("${JWT_SECRET_KEY}")
@Value("${jwt.secret_key}")
private String secretKey;

@Value("${JWT_TOKEN_ACCESS_EXPIRATION_TIME}")
@Value("${jwt.token.access_expiration_time}")
private Long accessExpirationTime;

@Value("${JWT_TOKEN_REFRESH_EXPIRATION_TIME}")
@Value("${jwt.token.refresh_expiration_time}")
private Long refreshExpirationTime;

public String createToken(Long sellerId, String role) {
Expand Down

0 comments on commit 231bd4f

Please sign in to comment.