Skip to content

Commit

Permalink
YEL-45 [hotfix] 토큰 재발급, 옐로 아이디 중복 체크 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
devkwonsehoon committed Aug 4, 2023
1 parent 33cc649 commit dae9c8e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public Boolean isYelloIdDuplicated(String yelloId) {
throw new AuthBadRequestException(YELLOID_REQUIRED_EXCEPTION);
}

userRepository.findByYelloId(yelloId);
userRepository.getByYelloId(yelloId);
return true;
}

Expand Down Expand Up @@ -201,8 +201,8 @@ public ServiceTokenVO reIssueToken(@NotNull ServiceTokenVO tokens) {
Long userId = jwtTokenProvider.getUserId(refreshToken);
String uuid = jwtTokenProvider.getUserUuid(refreshToken);

userRepository.findById(userId);
userRepository.findByUuid(uuid);
userRepository.getById(userId);
userRepository.getByUuid(uuid);

String newAccessToken = jwtTokenProvider.createAccessToken(userId, uuid);
val token = ServiceTokenVO.of(newAccessToken, tokens.refreshToken());
Expand Down

0 comments on commit dae9c8e

Please sign in to comment.