Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: memberId 추가 (#87) #88

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public ResponseEntity<TokenDto> authorize(@Valid @RequestBody MemberLoginRequest
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.add(JwtFilter.AUTHORIZATION_HEADER, "Bearer " + jwt);

return new ResponseEntity<>(new TokenDto(jwt), httpHeaders, HttpStatus.OK);
TokenDto tokenDto = new TokenDto(jwt, request.getMemberId());

return new ResponseEntity<>(tokenDto, httpHeaders, HttpStatus.OK);
}

@GetMapping("/user")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
public class TokenDto {

private String token;
private Long memberId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ public class MemberLoginRequest {
private String email;
@NotBlank
private String password;
private Long memberId;
}
Loading