Files
aiturk-mobil/app/src/main/java/com/m57/hermescontrol
M57 64f40686b6 Fix #266: Clear profile-slot token on 401 error (#326)
This commit modifies the connect flow in `ConnectViewModel.kt` to clear the profile-specific token alongside the global token when an HTTP 401 (Unauthorized) error is encountered. Previously, the global token was cleared, but the bad token persisted in the selected profile's slot, causing potential security and authentication handling issues.

Tests have been added to `ConnectViewModelTest.kt` to verify that both the global and profile tokens are correctly nullified under a 401 scenario.
2026-06-23 12:10:00 +03:00
..
2026-06-21 20:42:23 +03:00
2026-06-21 20:42:23 +03:00