reset vault credentials when on user logout

This commit is contained in:
ammarahm-ed
2021-04-04 08:24:44 +05:00
parent 1660cf86a3
commit d224260e2c
2 changed files with 2 additions and 1 deletions

View File

@@ -335,6 +335,7 @@ export const AppRootEvents = React.memo(
await sleep(500);
await PremiumService.setPremiumStatus();
await Storage.write('introCompleted', 'true');
eSendEvent(eOpenProgressDialog, {
title: reason ? reason : 'User logged out',
paragraph: `You have been logged out of your account.`,

View File

@@ -352,7 +352,7 @@ const AccoutLogoutSection = () => {
setLoading(true);
await sleep(10);
await db.user.logout();
await sleep(10);
await BiometricService.resetCredentials();
await Storage.write('introCompleted', 'true');
setLoading(false);
}}