feat: add admin access code entry - #171
Open
subir-sh wants to merge 3 commits into
Open
Conversation
subir-sh
marked this pull request as ready for review
July 29, 2026 14:01
Contributor
Author
|
conflict 해결하겠습니다 ;; |
Contributor
Author
|
로컬 테스트 결과 잘 됩니다! 아 생각해보니 access code 말씀 안 드렸네요, 이거 디코에서 물어보시면 알려드릴게요 |
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.
1. 어떤 기능을 구현했는지
/sync어드민 페이지 진입 시 유효한 admin JWT가 없으면 access code 입력 화면을 보여주도록 했습니다.2. 뭘 바꿨는지
adminAuthAPI 클라이언트와 admin 전용 axios 클라이언트를 추가했습니다.adminAccessToken전용 저장소를 추가하고/api/v1/admin/**요청에만 해당 토큰을 붙이도록 했습니다.AdminAccess와AdminRoute가 일반TokenService대신 admin 토큰 저장소를 사용하도록 변경했습니다.AdminEvents상단에 admin 토큰만 지우는 로그아웃 버튼을 추가했습니다.exp,isAdmin을 확인하도록 했습니다./admin/auth/session요청은 일반 Authorization/refresh interceptor 대상에서 제외했습니다.3. 왜 그렇게 했는지
Checks
corepack yarn biome check src/api/adminAxios.ts src/api/adminTokenService.ts src/api/adminAuth.ts src/api/adminEvent.ts src/pages/AdminAccess.tsx src/router/AdminRoute.tsxcorepack yarn build