Repository navigation
feat: AtchaV2 게스트 전용 전환 — 소셜 로그인 제거 + 게스트 토큰 자동 발급 + base URL /api 수정 - #363
Merged
Merged
Conversation
- Domain: IssueGuestSessionUseCase + DeviceIdentifierProviding, AuthRepository를 게스트 발급으로 교체
(SignIn/Logout/Withdraw UseCase·SocialCredential·SignUpForm·SessionEnding·AlarmSessionTeardown 삭제)
- AtchaData: POST /auth/guest {deviceId, fcmToken} 제안 계약(서버 합의 대기), withdraw·check·login·sign-up 제거
- CoreAuth: signOut/invalidateSession/clearSession·LogoutEndpoint 제거, SessionState.loginRequired → noSession
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 토큰 없음 → 키체인 기기 UUID로 게스트 발급 후 홈, 실패 시 스플래시 재시도 UI - refresh 확정 만료 → 화면 유지 + 같은 기기 ID로 재발급(같은 게스트 회원 전제라 알람 정리 없음) - AuthFeature 모듈·SocialLoginAdapter·KakaoConfig·카카오 SDK 링크·Apple 로그인 entitlement 제거 (레거시 타겟이 쓰는 카카오 패키지 선언은 유지) - 설정에서 로그아웃·계정 탈퇴 제거, DEV 로그아웃 메뉴 제거 - CLAUDE.md·로드맵 서버 질문 #1 갱신 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
빠른 MVP 테스트를 위해 V2를 게스트 전용으로 바꿉니다. 소셜 로그인(카카오·Apple)을 완전히 들어내고, 앱을 켜면 로그인 화면 없이 기기 ID로 게스트 토큰을 자동 발급받아 바로 홈으로 갑니다.
레거시 게스트는 토큰 없는 로컬 상태라 경로 검색·알람을 전부 쓸 수 없었습니다. 그래서 서버가 게스트 계정과 토큰을 발급해 주고, 기존 API(알람 등록·갱신·푸시)를 회원과 똑같이 쓰는 방식을 택했습니다.
서버 계약 (서버 팀 게스트 흐름 표 기준 확정)
POST /api/auth/guest {deviceId, fcmToken?}PUT /api/members/me {fcmToken}GET /v3/guest/last-routes/stream(SSE)GET /api/routes/last-routes를 게스트 JWT로 유지(사용자 결정) — 서버 허용 확인 필요POST·GET …/refresh·DELETE /api/routes/user-routesbus-arrival·subway-arrival/api/auth/reissue→ 실패 시/api/auth/guest재호출 = 같은 계정🐛 이번에 함께 고친 치명 버그 — base URL
/api누락: 서버 경로는 전부/api/...인데 V2 base URL이https://atcha.p-e.kr라 모든 요청이 어긋나 있었습니다(과거 데모 폴백이 실패를 가림).AppEnvironment에/api를 붙이고AppEnvironmentTests로 고정했습니다.서버 확인 필요: 표에 없는 V2 사용 API가 게스트 JWT를 허용하는지 —
/routes/last-routes(+/{id}),/locations,/locations/rgeo,/locations/is-service-region,GET /members/me,PATCH /members/me/home-address,/app/version.참고: 2026-09-24 오후 재확인 시에도 dev(
atcha.p-e.kr) 연결 타임아웃, live(atcha.online) DNS 실패 — 실서버 E2E는 서버 복구 후 가능합니다.변경 사항
IssueGuestSessionUseCase로 게스트 세션을 발급받습니다.KeychainDeviceIdentifier). 키체인이라 재설치해도 유지됩니다.Tuist/Package.swift)은 유지했습니다.테스트
/api회귀 고정 포함)서버 이후 확인할 것
🤖 Generated with Claude Code