Skip to content

Commit

Permalink
hotfix: 회원 탈퇴 후 로그아웃 처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Dec 15, 2024
1 parent 7efef06 commit c62d6bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ interface SocialLoginApi {
example = "http://localhost:3000",
)
@RequestHeader(HttpHeaders.ORIGIN) requestOrigin: String,
response: HttpServletResponse,
): ResponseEntity<Unit>
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ class SocialLoginController(
override fun withdraw(
@Auth auth: AuthContext,
@RequestHeader(HttpHeaders.ORIGIN) requestOrigin: String,
response: HttpServletResponse,
): ResponseEntity<Unit> {
val memberId = auth.memberId()
val command = WithdrawSocialLoginCommand(memberId, requestOrigin)
withdrawSocialLoginUseCase.withdraw(command)
response.expireCookie(
name = "accessToken",
sameSite = "None",
)
return ResponseEntity.noContent().build()
}
}

0 comments on commit c62d6bb

Please sign in to comment.