From 011c5eeafa465743fccb09fc8008faf581b19d56 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 24 Mar 2022 07:52:48 -0700 Subject: [PATCH] Fix expired tokens showing as being correctly logged in Summary: In the category "how did this ever work", we had quite some reports of Flipper features not working while users are seemingly logged in. The cause of that is because the user info gets stored in the user reducer, so even when the network requests fail, the users appear to be logged in. Reviewed By: nikoant Differential Revision: D35114048 fbshipit-source-id: b8c09cb4e3fd7cd0cbe87ecb06dafca88716b689 --- desktop/flipper-ui-core/src/reducers/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/desktop/flipper-ui-core/src/reducers/index.tsx b/desktop/flipper-ui-core/src/reducers/index.tsx index 66cd5ab1b..b83386444 100644 --- a/desktop/flipper-ui-core/src/reducers/index.tsx +++ b/desktop/flipper-ui-core/src/reducers/index.tsx @@ -153,13 +153,7 @@ export function createRootReducer() { ), supportForm, pluginManager, - user: persistReducer( - { - key: 'user', - storage, - }, - user, - ), + user: user as any, settingsState: settings, launcherSettingsState: launcherSettings, healthchecks: persistReducer(