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
- rxdatasources
- paragraph style
- swift custom ui
- swift 백준
- custom ui
- button configuration
- uikit toast
- RxSwift
- reactorkit
- swift dashed line
- coordinator
- claen architecture
- swift bottomsheet
- identifiable
- 타임라인 포맷팅
- task cancellation
- UIKit
- swift concurrency
- 버튼 피드백
- domain data
- BFS
- swift navigationcontroller
- custom navigation bar
- custombottomsheet
- task cancel
- SWIFT
- traits
- DP
- Tuist
- swift 점선
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