Skip to content

Commit

Permalink
[fix] #15 로그인 api response dto userName 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuKwanKon committed Sep 12, 2023
1 parent 2e77478 commit 5cc5a14
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
@Builder
@Getter
public class UserAuthResponseDto {
private Long userId;
private String userName;
private String accessToken;
private String refreshToken;
private Long userId;

public static UserAuthResponseDto of(Token token, User user) {
return UserAuthResponseDto.builder()
.accessToken(token.getAccessToken())
.refreshToken(token.getRefreshToken())
.userId(user.getId())
.userName(user.getUserName())
.build();
}
}

0 comments on commit 5cc5a14

Please sign in to comment.