Skip to content

Commit

Permalink
Merge pull request #45 from 9oormthon-univ/hyundong
Browse files Browse the repository at this point in the history
feat :: 로그인 성공 후 반환 값에 사용자 이름 추가
  • Loading branch information
hyundong-L authored Nov 26, 2024
2 parents 23c453c + 2bc38f9 commit 1f96fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
@Builder
public class LoginResponseDto {
private Boolean isNewUser;
private String username;
private String accessToken;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public LoginResponseDto login(HttpServletResponse response, KakaoLoginParam para

return LoginResponseDto.builder()
.isNewUser(userInfo.getBirthDate() == null)
.username(userInfo.getNickname())
.accessToken(tokenDto.accessToken())
.build();
}
Expand Down

0 comments on commit 1f96fb2

Please sign in to comment.