Showing
1 changed file
with
5 additions
and
0 deletions
| 1 | +import 'package:doublefeel_flutter/pigeon/platform_api.g.dart'; | ||
| 2 | + | ||
| 1 | import '../logging/app_logger.dart'; | 3 | import '../logging/app_logger.dart'; |
| 2 | import '../network/api/user_api.dart'; | 4 | import '../network/api/user_api.dart'; |
| 3 | import '../../data/local/user_preferences_storage.dart'; | 5 | import '../../data/local/user_preferences_storage.dart'; |
| @@ -46,6 +48,9 @@ class UserStateService { | @@ -46,6 +48,9 @@ class UserStateService { | ||
| 46 | await _userApi.logout(); | 48 | await _userApi.logout(); |
| 47 | } | 49 | } |
| 48 | await _userPrefs.clear(); | 50 | await _userPrefs.clear(); |
| 51 | + try { | ||
| 52 | + await PlatformHostApi().logout(); | ||
| 53 | + } catch (e) {} | ||
| 49 | AppLogger.i('UserStateService.onLogout completed'); | 54 | AppLogger.i('UserStateService.onLogout completed'); |
| 50 | } | 55 | } |
| 51 | 56 |
-
Please register or login to post a comment