Skip to content

Commit

Permalink
Merge pull request #208 from OutDecision/issue/197
Browse files Browse the repository at this point in the history
Issue/197
  • Loading branch information
baeksom authored May 26, 2024
2 parents 7b26019 + f819048 commit afb0a1f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
String newAccessToken = tokenService.republishAccessToken(atc, response);

if (newAccessToken != null) {
addCookie(response, "Authorization", newAccessToken, 60 * 5);
addCookie(response, "Authorization", newAccessToken, 60 * 60);
atc = newAccessToken;
log.info("토큰 발급 완료 필터 newAccessToken = {}", newAccessToken);
} else {
Expand All @@ -68,6 +68,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse

// 아래 코드는 AccessToken이 유효할 때만 실행됨
if (jwtUtil.verifyToken(atc)) {
log.info("accessToken 유효 : " + atc);
Member findMember = findMemberService.findByEmail(jwtUtil.getUid(atc)).orElse(null);

if (findMember != null) {
Expand Down

0 comments on commit afb0a1f

Please sign in to comment.