Skip to content

Commit

Permalink
fix: 회원가입 또는 로그인 시, memberId 추가로 전달 #46 #8
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Feb 8, 2024
1 parent 9093ba0 commit 5366482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.nice.petudio.api.controller.auth.dto.request.LoginRequest;
import com.nice.petudio.api.controller.auth.dto.request.ReissueRequest;
import com.nice.petudio.api.controller.auth.dto.response.LoginResponse;
import com.nice.petudio.api.controller.auth.service.AuthService;
import com.nice.petudio.api.controller.auth.service.AuthServiceProvider;
import com.nice.petudio.api.controller.auth.service.CommonAuthService;
Expand Down Expand Up @@ -43,7 +44,7 @@ public ApiResponse<?> login(@Valid @RequestBody final LoginRequest request, Http

addTokensToCookie(createTokenService.createTokenInfo(memberId), response);

return ApiResponse.success();
return ApiResponse.success(new LoginResponse(memberId));
}

@Operation(summary = "[인증] 로그아웃")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.nice.petudio.api.controller.auth.dto.response;

public record LoginResponse(Long memberId) {
}

0 comments on commit 5366482

Please sign in to comment.