fix: Google OAuth refresh 에러를 401로 변환하는 방어선 추가#25
Merged
Conversation
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.
요약
상세 변경
backend/app/auth/google_errors.py신규 추가backend/app/auth/dependencies.py,backend/app/core/background_sync.py공통 헬퍼 사용으로 정리backend/app/calendar/router.py5개 엔드포인트에 RefreshError 방어선 추가backend/app/mail/routers/gmail.py3개 엔드포인트에 RefreshError 방어선 추가backend/tests/routers/test_calendar.py신규 추가 및 쓰기 경로 회귀 테스트 확장backend/tests/routers/test_gmail.pysync/full, apply-labels까지 회귀 테스트 확장PLAN.md,PROGRESS.md업데이트검증
cd backend && uv run ruff check .✅cd backend && uv run pytesttests/routers/test_auth.pysliding session 테스트 2건test_me_renews_cookie_when_token_is_past_half_lifetest_me_does_not_renew_cookie_when_token_has_enough_time_left