[fix/MAT-885] 비밀번호 찾기 JSON 파싱 에러 발생#360
Merged
Merged
Conversation
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
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.
Summary
비밀번호 찾기 플로우에서 빈 응답 body를 JSON으로 파싱하며 발생하던
JSON Parse error: Unexpected end of input문제를 수정했습니다.인증 코드 검증 응답의
value를 명시적으로 확인해 잘못된 코드로 다음 단계에 진입하지 않도록 막고, 코드/비밀번호 입력 CTA 활성화 조건을 실제 검증 조건과 맞췄습니다.백엔드 최신
develop기준으로verify-code는 코드를 소비하지 않고 검증만 하며, 앱의verify-code -> reset구조와 호환됨을 확인했습니다.Linear
Changes
parseAs: 'stream'을 적용했습니다.data.value가 true일 때만 새 비밀번호 설정 화면으로 이동하도록 처리하고 실패 로그를 추가했습니다.Testing
pnpm typecheck/api/student/auth/password/reset/verify-code가 최신 develop에서 코드를 삭제하지 않고 BooleanResp(value)만 반환하는 구조임을 확인했습니다.Risk / Impact
verify-code가 코드를 소비하지 않는 최신 구현과 함께 배포되어야verify-code -> reset2-step 구조가 안정적으로 동작합니다.Screenshots / Video