Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Fix expired tokens showing as being correctly logged in
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mweststrate authored and facebook-github-bot committed Mar 24, 2022
1 parent 59db6c6 commit 011c5ee
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions desktop/flipper-ui-core/src/reducers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down

0 comments on commit 011c5ee

Please sign in to comment.