fix(auth): 탈퇴 회원 카카오 재가입 허용 - #102
Conversation
- signIn 콜백에서 deletedAt 존재 시 계정 복구 처리 - deletedAt, deletionRequestedAt null 초기화 - kakaoId 재연결 - auditLog에 USER_REACTIVATED 이벤트 기록 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Changes계정 재활성화 트랜잭션
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/auth/index.ts`:
- Around line 131-148: The auditLog.create call in the transaction is using the
event type USER_REACTIVATED which is not defined in the AuditEventType enum in
the Prisma schema. Add the USER_REACTIVATED value to the AuditEventType enum
definition in prisma/schema.prisma, then create and apply a migration for this
schema change, and finally regenerate the Prisma client using prisma generate to
ensure the changes are reflected in the generated types and client.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: 19d81582-038f-445a-b13b-354173f0e791
📒 Files selected for processing (1)
src/lib/auth/index.ts
- Vercel 빌드 타입 에러 해결 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
deletedAt존재 시 계정 복구 처리 (기존: 로그인 차단)deletedAt,deletionRequestedAt초기화 +kakaoId재연결auditLog에USER_REACTIVATED이벤트 기록주의사항
audit_logs테이블 및audit_event_typeenum에USER_REACTIVATED값이 DB에 반영되어야 정상 동작합니다Test plan
deletedAt,deletionRequestedAt이 null인지 확인audit_logs에USER_REACTIVATED이벤트 기록 확인🤖 Generated with Claude Code
Summary by CodeRabbit
릴리스 노트