Skip to content

Commit e96892b

Browse files
Merge pull request Expensify#86673 from s77rt/clean-session-callback-changed-user
[Internal QA] Add missed cleanup after login as another user
2 parents 5467a27 + c36fa0f commit e96892b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/libs/Navigation/AppNavigator/AuthScreensInitHandler.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ function AuthScreensInitHandler() {
107107
const isSupportalTransition = currentUrl.includes('authTokenType=support');
108108
if (isLoggingInAsNewUser && isTransitioning) {
109109
Session.signOutAndRedirectToSignIn(false, isSupportalTransition);
110-
return;
110+
return () => {
111+
Session.cleanupSession();
112+
};
111113
}
112114

113115
NetworkConnection.listenForReconnect();

0 commit comments

Comments
 (0)