mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
reset vault credentials when on user logout
This commit is contained in:
@@ -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.`,
|
||||
|
||||
@@ -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);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user