fix: 401 logout loop — sync state update, prevent re-navigation #53
Reference in New Issue
Block a user
Delete Branch "feat/push-monitoring-agent-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause: LoginViewModel.logout() was async (viewModelScope.launch),
so _uiState.isConnected remained true after navigating to login.
LoginScreen's LaunchedEffect immediately navigated back to dashboard,
where APIs failed with 401 again → infinite loop.
Fixes:
before launching coroutine for prefs.clear()
re-validating session right after invalidation)
Bump to v1.7.1 (versionCode 10)