Skip to content

Commit

Permalink
refactor: JWT 만료 시간 연장 (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdjww authored Oct 10, 2024
1 parent da22d1a commit 059cd5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public String verifyGoogleToken(String accessToken) {
log.info("===== Token info received ===== " + tokenInfo);
if (tokenInfo != null && tokenInfo.containsKey("sub")) {
String googleId = (String) tokenInfo.get("sub");
return jwtUtil.createJwt("access", googleId, "ROLE_USER", 180000L);
return jwtUtil.createJwt("access", googleId, "ROLE_USER", 1800000000L);
} else {
log.error("===== Invalid token info ===== " + tokenInfo);
throw new CustomException(INVALID_TOKEN.getHttpStatusCode(), INVALID_TOKEN.getErrorMessage());
Expand Down

0 comments on commit 059cd5e

Please sign in to comment.