Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 리프레시 토큰 로직 수정 #545

Open
krrong opened this issue Nov 7, 2023 · 0 comments
Open

fix: 리프레시 토큰 로직 수정 #545

krrong opened this issue Nov 7, 2023 · 0 comments
Assignees
Labels
🦄 안드로이드 안드로이드 라벨

Comments

@krrong
Copy link
Collaborator

krrong commented Nov 7, 2023

🚨 요약

현재 구조는 모든 요청에 리프레시 로직이 들어가 있는 상태입니다.
액세스 토큰이 만료된 후 한 뷰에서 여러 개의 요청을 하는 경우 모든 요청이 실패하고 리프레시 요청을 하기 때문에 정상적으로 리프레시 되지 않습니다.

❓ 이유

액세스 토큰이 만료된 후 한 뷰에서 여러 개의 요청을 하는 경우 모든 요청이 실패하고 리프레시 요청을 하기 때문에 정상적으로 리프레시 되지 않습니다.

💡 제안

코루틴을 적절하게 사용하여 리프레시 로직이 동작하도록 할 예정입니다.
이 과정에서 인터셉터가 가지고 있는 역할을 AuthRepository로 옮길 예정입니다.

@krrong krrong self-assigned this Nov 7, 2023
@krrong krrong added the 🦄 안드로이드 안드로이드 라벨 label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦄 안드로이드 안드로이드 라벨
Projects
None yet
Development

No branches or pull requests

1 participant