Skip to content

Commit

Permalink
fix: 로그인 반환방식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Tentennball committed Jul 31, 2024
1 parent 5efae1e commit da2342d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gible/domain/auth/service/AuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ResponseEntity<?> login(SignInReq signInReq) {
KakaoUserInfo kakaoUserInfo = getUserInfo(signInReq);
User user = userService.findByEmail(kakaoUserInfo.email());
if(user == null) {
return ResponseEntity.status(510).body(kakaoUserInfo.email());
return ResponseEntity.status(510).body(kakaoUserInfo);
}

String accessToken = jwtTokenProvider.generateAccessToken(user.getEmail(), user.getId(), user.getRole().toString());
Expand Down

0 comments on commit da2342d

Please sign in to comment.