[Fix] 토큰 복호화 실패 시 방어 로직 구현 #198 #201
Merged
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.
🔗 관련 이슈
📙 작업 설명
암호화 시 사용되었던 AES Keystore 가 삭제됨
DataStore 등 내부 저장소 데이터도 삭제됨
새로운 UID 가 발급되고, AES Keystore 가 새로 생김
DataStore 가 복구됨!! -> 이 값은 이전 AES Keystore 를 통해 암호화된 값임.
DataStore 에 값이 존재 -> decrypt 진행 -> 이전에 암호화된 값을 새로운 키로 복호화 하려고 함
에러 발생
try catch 로 감싸서, 해당 예외가 발생 시 defaultValue 토큰으로 날림 -> 빈 토큰으로 인지해서 로그인화면으로 이동하게 됨
위 사진에서 allowBackup, fullBackupContent 에 false 값을 입력하면 되는 것 같습니다.
💬 추가 설명 or 리뷰 포인트 (선택)