Librechat-Mobile/feature
Garfie ff25ef6f47 fix(settings): stop double-invoking authRepository.logout on logout/delete
SettingsViewModel.logout() and deleteAccount() each called
authRepository.logout() directly before flipping the state flag that
drives the screen's LaunchedEffect -> onLogout callback ->
NavHostViewModel.logout(), which invokes authRepository.logout() again.
Each redundant call fires a POST /api/auth/logout that 401s (tokens
already gone) and re-runs session cleanup; with the planned full-wipe
change that duplication becomes actively harmful.

Collapse SettingsViewModel.logout() to a single state update, and drop
the direct authRepository.logout() call from the deleteAccount success
branch. NavHostViewModel.logout() remains the single source of truth
for the cleanup side of the flow.
2026-04-14 22:52:15 -05:00
..
agents cleanup: burn down detekt baselines and rename Compose Resources package 2026-04-11 12:35:19 -05:00
auth cleanup: burn down detekt baselines and rename Compose Resources package 2026-04-11 12:35:19 -05:00
chat cleanup: burn down detekt baselines and rename Compose Resources package 2026-04-11 12:35:19 -05:00
conversations feat(favorites): move bookmarks to server-backed tags with offline cache 2026-04-13 19:40:14 -05:00
files cleanup: burn down detekt baselines and rename Compose Resources package 2026-04-11 12:35:19 -05:00
settings fix(settings): stop double-invoking authRepository.logout on logout/delete 2026-04-14 22:52:15 -05:00