Skip to content

Commit

Permalink
RAC-97 refactor : ResponseCode수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 authored Nov 2, 2023
1 parent c0cd140 commit 86686c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public class AuthController {
public ResponseDto<?> getUserDetails(@RequestBody KakaoLoginRequest request) {
AuthUserResponse authUser = kakaoSignInUseCase.getUser(request.getAccessToken());
if (authUser.getSocialId() != null) {
return ResponseDto.create(AUTH_CONTINUE.getCode(), NOT_REGISTERED_USER_MESSAGE.getMessage(), authUser);
return ResponseDto.create(AUTH_NONE.getCode(), NOT_REGISTERED_USER_MESSAGE.getMessage(), authUser);
}
JwtTokenResponse jwtToken = jwtUseCase.signIn(authUser.getUser());
return ResponseDto.create(AUTH_NONE.getCode(), SUCCESS_AUTH_MESSAGE.getMessage(), jwtToken);
return ResponseDto.create(AUTH_ALREADY.getCode(), SUCCESS_AUTH_MESSAGE.getMessage(), jwtToken);
}

@PostMapping("/signup")
Expand Down

0 comments on commit 86686c0

Please sign in to comment.