diff --git a/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java b/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java index d53ebb4..d98f48a 100644 --- a/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java +++ b/src/main/java/com/example/howmuch/dto/user/login/UserOauthLoginResponseDto.java @@ -17,5 +17,5 @@ public class UserOauthLoginResponseDto { private String refreshToken; private String expiredTime; private String roleType; - private Boolean phoneExisted; + private String phoneNumber; } diff --git a/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java b/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java index 3266749..0a03935 100644 --- a/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java +++ b/src/main/java/com/example/howmuch/service/user/KakaoOauthService.java @@ -62,7 +62,7 @@ private UserOauthLoginResponseDto processKakaoToken(User user) { .expiredTime(expireTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))) .refreshToken(refreshToken.getTokenValue()) .roleType(user.getRoleType().name()) - .phoneExisted(user.getPhoneNumber() != null) + .phoneNumber(user.getPhoneNumber()) .build(); } diff --git a/src/main/java/com/example/howmuch/service/user/OauthService.java b/src/main/java/com/example/howmuch/service/user/OauthService.java index 01f1d4d..fff3107 100644 --- a/src/main/java/com/example/howmuch/service/user/OauthService.java +++ b/src/main/java/com/example/howmuch/service/user/OauthService.java @@ -149,7 +149,7 @@ private UserOauthLoginResponseDto getOauthLoginResult(User user) { .expiredTime(expireTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))) // 만료 Local Date Time .refreshToken(refreshToken.getTokenValue()) .roleType(user.getRoleType().name()) - .phoneExisted(user.getPhoneNumber() != null) + .phoneNumber(user.getPhoneNumber()) .build(); }