Skip to content

fix(android-auth): silent 401 refresh and auto-logout#92

Open
Trirrin wants to merge 1 commit intomainfrom
fix/android-silent-401-refresh
Open

fix(android-auth): silent 401 refresh and auto-logout#92
Trirrin wants to merge 1 commit intomainfrom
fix/android-silent-401-refresh

Conversation

@Trirrin
Copy link
Copy Markdown
Member

@Trirrin Trirrin commented Apr 6, 2026

  • Add Throwable.isUnauthorized extension to detect 401 errors from TokenAuthenticator
  • Add observeTokenCleared() in AuthViewModel to auto-transition to unauthenticated state when tokens are cleared
  • Remove error messages from token refresh failure paths
  • Filter 401 errors in MainViewModel and MusicViewModel to prevent error popups
  • When refresh token fails, silently redirect to login without showing error notifications

- Add Throwable.isUnauthorized extension to detect 401 errors from TokenAuthenticator
- Add observeTokenCleared() in AuthViewModel to auto-transition to unauthenticated state when tokens are cleared
- Remove error messages from token refresh failure paths
- Filter 401 errors in MainViewModel and MusicViewModel to prevent error popups
- When refresh token fails, silently redirect to login without showing error notifications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant