Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async (dispatch: Dispatch) => {
Intercom.logout();
navigate(NavigationActions.navigate({ routeName: ONBOARDING_FLOW }));
dispatch({ type: LOG_OUT });
dispatch({ type: UPDATE_APP_SETTINGS, payload: {} });
chat.client.resetAccount().catch(() => null);
clearWebViewCookies();
await firebase.iid().delete().catch(() => {});
await AsyncStorage.removeItem(WALLET_STORAGE_BACKUP_KEY);
await storage.removeAll();
};
};