Implement clearing user data on logout

This commit is contained in:
2026-02-06 17:31:04 +01:00
parent b62ed98375
commit 6669e2446c
2 changed files with 27 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ class _HomePageState extends State<HomePage> with RouteAware {
}
Future<void> _handleLogout() async {
await _storageService.clearToken();
await _storageService.clearAllUserData();
if (!mounted) return;