-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Backend 연결 (ERDv0.3) 및 기록동기화 구현 #62
Merged
Merged
Conversation
This file contains 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
# for free
to join this conversation on GitHub.
Already have an account?
# 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.
작업 내용
동작 화면
기록동기화 로직
-> RecordTimes 의 recordStartAt 값과 마지막 Daily의 startDate 값을 확인한 후
같은 경우: uploadRecordTime
다른 경우: getRecordTime
server ERD 상태
Keychain
kSecClassGenericPassword
kSecClassInternetPassword
를 사용하였기에kSecValueData
속성을 통해 password 를 저장하는 식의 구조였으나kSecClassGenericPassword
를 사용하였기에kSecAttrGeneric
속성을 통해 값을 저장하는 구조가 되었다.kSecAttrService
(앱 Bundle identifier),kSecAttrAccount
(저장대상 아이템 이름),kSecAttrGeneric
(저장대상 값) 구조가 되었다.Token 관리
NetworkInterceptor
생성401
(AUTHENTICATION) 인 경우레퍼런스
SwiftKeychainWrapper
Adding a Password to the Keychain
On Mac keychain APIs and implementations
키체인 간단 사용법
Alamofire 사용 방법 - 토큰 갱신 방법1 (Interceptor, adapt, retry)
Alamofire 사용 방법 - 토큰 갱신 (AuthenticationCredential, Authenticator, AuthenticationInterceptor)