fix(mobile) not possible to sign out when option is enable (#860)
This commit is contained in:
parent
e63d165b65
commit
a87c1c1210
1 changed files with 14 additions and 0 deletions
|
@ -164,6 +164,20 @@ class AuthenticationNotifier extends StateNotifier<AuthenticationState> {
|
||||||
_assetCacheService.invalidate();
|
_assetCacheService.invalidate();
|
||||||
_albumCacheService.invalidate();
|
_albumCacheService.invalidate();
|
||||||
_sharedAlbumCacheService.invalidate();
|
_sharedAlbumCacheService.invalidate();
|
||||||
|
|
||||||
|
// Remove login info from local storage
|
||||||
|
var loginInfo =
|
||||||
|
Hive.box<HiveSavedLoginInfo>(hiveLoginInfoBox).get(savedLoginInfoKey);
|
||||||
|
if (loginInfo != null) {
|
||||||
|
loginInfo.email = "";
|
||||||
|
loginInfo.password = "";
|
||||||
|
loginInfo.isSaveLogin = false;
|
||||||
|
|
||||||
|
Hive.box<HiveSavedLoginInfo>(hiveLoginInfoBox).put(
|
||||||
|
savedLoginInfoKey,
|
||||||
|
loginInfo,
|
||||||
|
);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue