release: 1.7.1 - #33
Merged
Merged
Conversation
서버가 요청 sub를 무시하고 자체 UUID로 신원을 만들어 왔기 때문에, 기존 설치는 저장된 @auth_subject와 토큰 안의 신원이 서로 다른 값이다. 백엔드가 요청 sub를 studentId로 쓰기 시작하면, 401 재발급 때 @auth_subject를 보내는 현재 동작은 신원을 바꿔버려 기존 편지함을 잃게 만든다. - resolveAuthSubject()를 추가해 저장된 토큰이 있으면 payload.sub를, 없을 때만 @auth_subject를 쓰도록 한다. api.ts의 401 재발급 경로와 auth-token.service.ts의 발급 경로가 같은 규칙을 쓴다. - generateUuidV4를 Math.random에서 crypto.getRandomValues로 바꾼다. 서버가 sub를 신원으로 받기 시작하면 이 값이 곧 신원 증명이 되므로 추측 가능하면 안 된다. polyfill이 없으면 약한 값으로 폴백하지 않고 실패시킨다. @auth_subject 저장 키와 기존 값은 그대로 둔다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
fix: 학생 토큰 sub 처리를 백엔드 계약 변경에 맞춘다
|
Important Review available on request
Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.7.11818prod주요 변경사항
sub를 토큰 발급·재발급에 우선 사용해 기존 설치의 학생 신원을 유지합니다.crypto.getRandomValues기반 UUIDv4로 생성합니다.1.7.1/ 빌드18로 갱신합니다.릴리즈 순서
이 앱 릴리즈를 먼저 배포한 뒤 백엔드 Moadong/moadong#1926을 배포해야 합니다.
검증
npx tsc --noEmit통과npm run lint통과 — 오류 0건, 기존 경고 5건npx expo config --type public --json에서1.7.1/ iOS18/ Android18확인plutil -lint ios/app/Info.plist통과