fix(auth): 비자동승인 도메인 Google OAuth PENDING 안내 UX 개선 #15

병합
htlee feature/auth-system 에서 develop 로 1 commits 를 머지했습니다 2026-02-28 11:10:14 +09:00
소유자

Summary

  • 비자동승인 도메인(gmail.com 등) Google OAuth 로그인 시 403 에러 대신 200 pending 응답 반환
  • 프론트엔드에서 PENDING 상태를 청록색 안내 메시지로 표시 (에러 빨간색과 분리)
  • 신규 등록 / 기존 PENDING 사용자 재로그인 모두 정상 안내

Changes

  • backend/src/auth/oauthService.ts — PENDING 시 에러 throw 대신 { type: pending } 반환
  • backend/src/auth/authRouter.ts — pending 응답 처리
  • frontend/src/services/authApi.tsPendingApprovalError 클래스 추가
  • frontend/src/store/authStore.tspendingMessage 상태 추가
  • frontend/src/components/auth/LoginPage.tsx — 승인대기 안내 UI 추가
## Summary - 비자동승인 도메인(gmail.com 등) Google OAuth 로그인 시 403 에러 대신 200 pending 응답 반환 - 프론트엔드에서 PENDING 상태를 청록색 안내 메시지로 표시 (에러 빨간색과 분리) - 신규 등록 / 기존 PENDING 사용자 재로그인 모두 정상 안내 ## Changes - `backend/src/auth/oauthService.ts` — PENDING 시 에러 throw 대신 `{ type: pending }` 반환 - `backend/src/auth/authRouter.ts` — pending 응답 처리 - `frontend/src/services/authApi.ts` — `PendingApprovalError` 클래스 추가 - `frontend/src/store/authStore.ts` — `pendingMessage` 상태 추가 - `frontend/src/components/auth/LoginPage.tsx` — 승인대기 안내 UI 추가
htlee added 1 commit 2026-02-28 11:10:04 +09:00
기존에 비자동승인 도메인(gmail.com 등) Google 로그인 시 403 에러를
던져 등록 실패처럼 보이던 문제를 수정. PENDING 사용자에 대해 에러
대신 200 응답으로 pending 상태를 반환하고, 프론트엔드에서 청록색
안내 메시지로 표시하도록 변경.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
htlee merged commit 62546144fa into develop 2026-02-28 11:10:14 +09:00
"로그인하여 이 대화에 참여"
No reviewers
레이블 없음
마일스톤 없음
담당자 없음
참여자 1명
알림
마감일
기한이 올바르지 않거나 범위를 벗어났습니다. 'yyyy-mm-dd'형식을 사용해주십시오.

마감일이 설정되지 않았습니다.

의존성

No dependencies set.

Reference: gc/wing-ops#15
No description provided.