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.
👾 작업 내용
interceptor를 구현했습니다.
🚀 PR Point
1-1.
statusCode == 200
일 경우 accessToken이 만료된 상태입니다. refreshToken은 만료되지 않았기 때문에 refreshToken을 이용해서 토큰을 재발급 받고 UserManager에 저장합니다.HMH-iOS/HMH_iOS/HMH_iOS/Network/Base/AuthInterceptor.swift
Lines 43 to 47 in e9c3c45
1-2.
statusCode == 401
일 경우 리프레쉬 토큰마저 만료된 경우로 refreshToken, acessToken을 모두 refresh 해야합니다.이 경우 다시 로그인해야 하므로 로그인 화면으로 이동합니다. (
rootView
를 변경해야합니다.)HMH-iOS/HMH_iOS/HMH_iOS/Network/Base/AuthInterceptor.swift
Lines 48 to 50 in e9c3c45
✅ Issue
Resolved #82