Skip to content

Conversation

@yoorli
Copy link
Member

@yoorli yoorli commented Jan 3, 2026

📝 변경 사항

src/components/pages/auth/login/login-form/index.tsx

  • 기존 이메일/비밀번호 로그인 폼 하단에 Google SNS 로그인 버튼을 추가
  • path 쿼리 파라미터를 읽어 post_login_pathsessionStorage에 저장하도록 처리
    • normalizePath()외부 URL/비정상 경로를 방지하고, 기본값은 /로 처리
  • Google OAuth 요청을 위해 아래 정보를 구성
    • redirectUri: ${window.location.origin}/auth/google/callback
    • state: crypto.randomUUID()로 생성 후 google_oauth_state로 저장
    • Google Auth endpoint로 client_id, redirect_uri, response_type=code, scope, state, prompt를 포함해 redirect

src/components/pages/auth/login/login-sns-button/index.tsx

  • SNS 로그인 전용 버튼 컴포넌트를 추가

src/app/auth/google/callback/page.tsx

  • Google OAuth callback 처리 페이지를 추가/수정

src/api/service/auth-service/index.ts

  • Google OAuth code 교환 API(exchangeGoogleCode)를 구현

src/types/service/auth.ts

  • Google OAuth 교환용 타입을 추가/정리

src/mock/service/auth/auth-handlers.ts

  • MSW에 Google OAuth code 교환 mock을 추가

src/lib/auth/utils.ts

src/hooks/use-auth/use-auth-login/index.ts

  • normalizePath()를 공용 유틸로 추가해, 로그인 관련 로직에서 중복 구현 제거일관된 경로 정규화를 적

src/app/auth/privacy/page.tsx

  • Google OAuth 연동 시 필요한 개인정보 처리 관련 안내 페이지를 추가

🔗 관련 이슈

Closes #196


🧪 테스트 방법

  • 수동 테스트 검증(로컬 환경)
  • 유닛 테스트 검증
  • 통합 테스트 검증

📸 스크린샷 (선택)


📋 체크리스트

  • 관련 문서를 업데이트했습니다 (필요한 경우)
  • 테스트를 추가/수정했습니다 (필요한 경우)
  • Breaking change가 있다면 명시했습니다

💬 추가 코멘트

NEXT_PUBLIC_GOOGLE_CLIENT_ID=1051850964002-gqjvvi6pqjpl7ctk64cdm0kqk6bb4083.apps.googleusercontent.com


CodeRabbit Review는 자동으로 실행되지 않습니다.

Review를 실행하려면 comment에 아래와 같이 작성해주세요

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 3, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

🎭 Playwright Report

E2E Test가 성공적으로 완료되었습니다.

Test 요약 내용을 확인해주세요.

Status Build Log Updated (UTC)
✅ Ready View Build 2026-01-03 13:22:32

📊 Test Summary

  • ✅ Passed: 3
  • ❌ Failed: 0
  • ⏱️ Duration: 37.4s

📜 Test Details

✅ Passed Tests (3)
  • profile.test.ts (3)
    • [chromium] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트
    • [firefox] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트
    • [webkit] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

🎨 Storybook Report

변경 사항이 없습니다

모든 Story가 이전 빌드와 동일합니다.

Status Storybook Build Log Updated (UTC)
✅ Unchanged View Storybook View Build 2026-01-03 13:22:26

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

📊 Coverage Report

Status Build Log Updated (UTC)
✅ Ready View Build 2026-01-03 13:21:05

📉 #329main에 병합하면 coverage가 0.17% 감소합니다.

Coverage 요약

@@             Coverage Diff             @@
##             main     #329       +/-   ##
===========================================
- Coverage   37.33%   37.16%    -0.17%     
===========================================
  Files         227      228        +1     
  Lines       10445    10589      +144     
  Branches      420      420         0     
===========================================
+ Hits         3900     3935       +35     
+ Misses       6545     6654      +109     

영향받은 파일

파일 Coverage 변화
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/api/service/auth-service/index.ts 62.71% (-6.85%) ⬇️
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/hooks/use-auth/use-auth-login/index.ts 34.88% (+13.73%) ⬆️
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/lib/auth/utils.ts 21.73% (+21.73%) ⬆️
/home/runner/work/WeGo_FrontEnd/WeGo_FrontEnd/src/mock/service/auth/auth-handlers.ts 30.81% (-3.44%) ⬇️

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

🚀 PR Preview Report

Build가 성공적으로 완료되었습니다.

Preview에서 변경사항을 확인하세요.

Status Preview Build Log Updated (UTC)
✅ Ready Visit Preview View Logs 2026-01-03 13:22:19

Copy link
Member

@Chiman2937 Chiman2937 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~

@yoorli yoorli merged commit 0e01492 into main Jan 3, 2026
6 of 7 checks passed
@yoorli yoorli deleted the yoolri-feat/SNS-login branch January 3, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[로그인, 회원가입] 로그인 추가 기능

3 participants