Skip to content

Commit

Permalink
refactor: LoginDto에서 grantType 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
SJ70 committed Jul 25, 2024
1 parent a4afa29 commit 4659719
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.time.LocalDateTime;

public record LoginDto(
String grantType,
String accessToken,
String refreshToken,
LocalDateTime deletedAt
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/j9/bestmoments/service/TokenService.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public LoginDto create(Member member) {
String accessToken = createAccessToken(member);
String refreshToken = createRefreshToken(member);
log.info("토큰 발급됨\n - accessToken: {}\n - refreshToken: {}", accessToken, refreshToken);
return new LoginDto("Bearer", accessToken, refreshToken, member.getDeletedAt());
return new LoginDto(accessToken, refreshToken, member.getDeletedAt());
}

private String createAccessToken(Member member) {
Expand Down

0 comments on commit 4659719

Please sign in to comment.