Skip to content

Conversation

@lilloo04
Copy link
Member

📌 연관 이슈

🌱 PR 요약

  • 사용자가 계정을 탈퇴할 수 있는 API를 구현
  • isActive = null로 설정하여 탈퇴 상태를 관리하며, 연관된 JWT 토큰을 완전히 삭제하여 보안 강화

🛠 작업 내용

  • PATCH /api/my/profile/withdraw

  • Authorization: Bearer {access_token}

  • 상태 관리: ACTIVE vs WITHDRAWN

  • [신규 가입]
    카카오 로그인 → User 생성 (ACTIVE) → JWT 발급

  • [정상 이용]
    JWT 인증 → 서비스 이용 (ACTIVE 상태만)

  • [탈퇴]
    탈퇴 API → 상태 변경 (WITHDRAWN) + 토큰 삭제

  • [재가입]
    카카오 로그인 → 기존 User 발견 → 상태 복구 (ACTIVE) → JWT 발급

📸 상세 이미지

image image image

@lilloo04 lilloo04 requested a review from kimssirr October 12, 2025 13:12
@lilloo04 lilloo04 self-assigned this Oct 12, 2025
@lilloo04 lilloo04 linked an issue Oct 12, 2025 that may be closed by this pull request
@lilloo04 lilloo04 merged commit 5afbf74 into dev Oct 14, 2025
1 check passed
@lilloo04 lilloo04 deleted the feat/#100 branch October 14, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 회원 탈퇴 API 구현

2 participants