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] 마이 페이지 화면 AccessToken 만료, 서버 에러 대응 #121

Merged
merged 5 commits into from
Mar 27, 2024

Conversation

easyhooon
Copy link
Collaborator

  • 토큰이 만료된 경우에 대해서, 서버 에러 다이얼로그를 띄워, 재시도를 하는 로직이 현재 상황에선 의미가 없고, 불필요한 API 호출을 야기시키기 때문에, 서버 에러가 발생할 경우 사용자에게 토스트 메세지를 통해 로그인 세션이 만료되었음을 알리고, 로그인 화면으로 이동하는 로직으로 임시 대응

  • 로컬에 저장된 토큰을 제거하는 함수인 clear 라는 함수의 네이밍이 추상적이므로, clearAuthToken 으로 좀 더 직관적으로 변경

토큰이 만료된 경우에 대해서, 서버 에러 다이얼로그를 띄워, 재시도를 하는 로직이 현재 상황에선 의미가 없고, 불필요한 API 호출을 야기시키기 때문에, 서버 에러가 발생할 경우 사용자에게 로그인 세션이 만료되었음을 알리고, 로그인 화면으로 이동하는 로직으로 임시 대응

clear 라는 함수명이 추상적이므로 clearAuthToken 으로 좀 더 직관적으로 변경
packageInfo 는 null 이 될 수 없음
@easyhooon easyhooon added bug Something isn't working feature New feature or request labels Mar 26, 2024
@easyhooon easyhooon self-assigned this Mar 26, 2024
@easyhooon easyhooon merged commit d93e954 into develop Mar 27, 2024
1 check passed
@easyhooon easyhooon deleted the feature/clean-up branch March 27, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants