Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- swift concurrency
- coordinator
- uikit toast
- custombottomsheet
- 타임라인 포맷팅
- swift 백준
- UIKit
- scene delegate
- custom ui
- swift navigationcontroller
- task cancellation
- DP
- domain data
- swift bottomsheet
- rxdatasources
- swift dashed line
- 버튼 피드백
- traits
- BFS
- reactorkit
- SWIFT
- task cancel
- button configuration
- identifiable
- Tuist
- swift 점선
- custom navigation bar
- swift custom ui
- RxSwift
- claen architecture
Archives
- Today
- Total
목록Jwt Token (1)
김경록의 앱 개발 여정
[Swift] 코디네이터 패턴과 JWT 기반 오토로그인
STEP 1토큰 관리 객체에 대한 아이디어키체인을 따로 별도 관리해주는 객체를 정의해당 객체는 CRUD를 포함하고 싱글톤 객체로서 외부에서 편하게 접근 가능하도록 설정isLoggedIn:Bool 을 계산속성으로 정의, 해당 속성은 getToken을 통해 값을 업데이트public var isLoggedIn: Bool { get { // 실질적 통신에 사용되는 엑세스 토큰만을 확인 return getToken(type: .access) != nil } }오토로그인에 대한 아이디어키체인 혹은 유저 디폴트에 JWT 토큰을 받아 저장로그인이 필요한 작업의 경우 해당 토큰을 꺼내서 헤더에 포함(Alamofire RequestInterceptor 사용)서버로부터 토큰이 만료되었다는 안내를 받으면 기존 저장중이던 토큰..
Trouble Shooting
2025. 1. 8. 19:18