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
This commit is contained in:
Michel Weststrate
2022-03-24 07:52:48 -07:00
committed by Facebook GitHub Bot
parent 59db6c63b6
commit 011c5eeafa

View File

@@ -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<HealthcheckState, Actions>(