Skip to content

Commit

Permalink
Merge pull request #125 from swm-nodriversomabus/FIX-LOGOUT-LOGIN
Browse files Browse the repository at this point in the history
fix(BE): 쿠키가아닌 jwt 유효시간으로 수정 access_token 유효시간 수정 for 에러체크용 #114
  • Loading branch information
namhyo01 authored Oct 18, 2023
2 parents 3d89837 + d8c4327 commit 485c49e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
.encode(StandardCharsets.UTF_8)
.toUriString();
log.info("success redirecting");
// CookieUtils.addCookie(response, "access_token",token.getAccessToken(), 1000 * 60 * 60);
CookieUtils.addCookie(response, "access_token",token.getAccessToken(), 10000);
CookieUtils.addCookie(response, "access_token",token.getAccessToken(), 1000 * 60 * 60);
clearAuthenticationAttributes(request, response);
// response.addCookie(CookieUtils.addCookie(););
getRedirectStrategy().sendRedirect(request, response, targetUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public String genereateRefreshToken(String id, String role, String provider) {
}

public String generateAccessToken(String id, String role, String provider) {
long tokenPeriod = 1000L * 60L * 60L; // 1시간 유효성
// long tokenPeriod = 1000L; // 1시간 유효성
// long tokenPeriod = 1000L * 60L * 60L; // 1시간 유효성
long tokenPeriod = 1000L; // 1시간 유효성
return getToken(id, role, provider, tokenPeriod);
}

Expand Down

0 comments on commit 485c49e

Please sign in to comment.