Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

reset vault credentials when on user logout

ammarahm-edd224260e2c55
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);
}}