Skip to content

Commit

Permalink
fix: 소셜로그인 auth 정보에 user_id 담도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast committed Jul 25, 2024
1 parent e2bdc75 commit e82ab0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
}

TokenDto tokenDto = tokenProvider.generateTokenDto(authentication, customOAuth2User.getUserId());
System.out.println(customOAuth2User.getUserId());

redisTemplate.opsForValue().set("RT:" + authentication.getName(),
tokenDto.getRefreshToken(),
tokenProvider.getRefreshTokenExpireTime(),
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/uspray/uspray/jwt/TokenProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public TokenDto generateTokenDto(Authentication authentication, String userId) {

long now = (new Date()).getTime();

System.out.println(authentication.getName());
// access token
Date accessTokenExpiresIn = new Date(now + ACCESS_TOKEN_EXPIRE_TIME);
String accessToken = Jwts.builder()
Expand Down

0 comments on commit e82ab0e

Please sign in to comment.