Implement clearing user data on logout
This commit is contained in:
@@ -161,7 +161,7 @@ class _HomePageState extends State<HomePage> with RouteAware {
|
||||
}
|
||||
|
||||
Future<void> _handleLogout() async {
|
||||
await _storageService.clearToken();
|
||||
await _storageService.clearAllUserData();
|
||||
|
||||
if (!mounted) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user