Skip to content

Commit

Permalink
logging :
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Aug 13, 2024
1 parent adf8c0a commit 6f326ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
public record TokenResponse(
String accessToken,
String refreshToken,
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "Asia/Seoul")
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "Asia/Seoul", locale = "Asia/Seoul")
LocalDateTime accessExpiredAt,
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "Asia/Seoul")
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "Asia/Seoul", locale = "Asia/Seoul")
LocalDateTime refreshExpiredAt
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
import io.jsonwebtoken.SignatureAlgorithm;
import jakarta.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Slf4j
@Component
@RequiredArgsConstructor
public class JwtTokenProvider {
Expand Down Expand Up @@ -107,6 +108,7 @@ private Claims getClaims(String token) {
public TokenResponse receiveToken(String id, UserRole userRole) {

LocalDateTime now = LocalDateTime.now();
log.info(now);

return TokenResponse
.builder()
Expand Down

0 comments on commit 6f326ea

Please sign in to comment.