Repository navigation
fix: GS25 정상 로그인 세션으로 직접 재고 조회 - #222
Merged
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.
GS25 재고는 기존 Api-Key만으로 인증되지 않아 조회 오류가 났습니다. Mac 중계에서 정상 GS 로그인으로 발급된 Bearer 세션을 사용하고, 만료 전 또는401/403 뒤 정상 갱신 API로 토큰을 갱신하도록 연결합니다. 가상기기를 재고 요청마다 실행하지 않습니다.
세션은 사용자 소유 비공개 파일에만 보관하며 고정 재고 URL에만 전송합니다. 동일 동시 갱신을 공유하고 caller별 취소를 분리하며, 네트워크·파일 저장에10초 기한을 적용합니다. 새 refresh 토큰은0600 파일로 원자저장하고 인증·저장 실패를 재고0으로 위장하지 않습니다. 기존 키 경로와 타서비스·원장·캐시 제한은 유지합니다.
검증: check/build,216파일2,380tests, 새 인증 모듈을 포함한 Statements/Branches/Functions/Lines100%, 독립 리뷰 및 저장 지연 회귀 통과. 정상 네이버 로그인으로 직접 API·갱신·갱신 후 재조회200을 확인했습니다. 코카콜라캔350ML(8801094017200) 강남프리미엄16/강남본점7/강남타운10/서초프라자0이 앱과 일치하며, 새 중계 코드의 동일2동시도200/원본1회입니다. 인증 토큰·회원정보는 커밋하지 않았습니다.