diff --git a/mobile/lib/modules/login/providers/authentication.provider.dart b/mobile/lib/modules/login/providers/authentication.provider.dart index c642f93b7..f75fe3b54 100644 --- a/mobile/lib/modules/login/providers/authentication.provider.dart +++ b/mobile/lib/modules/login/providers/authentication.provider.dart @@ -164,6 +164,20 @@ class AuthenticationNotifier extends StateNotifier { _assetCacheService.invalidate(); _albumCacheService.invalidate(); _sharedAlbumCacheService.invalidate(); + + // Remove login info from local storage + var loginInfo = + Hive.box(hiveLoginInfoBox).get(savedLoginInfoKey); + if (loginInfo != null) { + loginInfo.email = ""; + loginInfo.password = ""; + loginInfo.isSaveLogin = false; + + Hive.box(hiveLoginInfoBox).put( + savedLoginInfoKey, + loginInfo, + ); + } return true; }