From d224260e2c55fecf4022b07ea0476efd09ed824f Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sun, 4 Apr 2021 08:24:44 +0500 Subject: [PATCH] reset vault credentials when on user logout --- apps/mobile/AppRootEvents.js | 1 + apps/mobile/src/views/Settings/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/mobile/AppRootEvents.js b/apps/mobile/AppRootEvents.js index 0397ded3a..63de185b4 100644 --- a/apps/mobile/AppRootEvents.js +++ b/apps/mobile/AppRootEvents.js @@ -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.`, diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js index 56b448e87..66a8ab1fd 100644 --- a/apps/mobile/src/views/Settings/index.js +++ b/apps/mobile/src/views/Settings/index.js @@ -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); }}