Skip to content

Commit da8107a

Browse files
committed
add missed cleanup when loggin-in as another user
1 parent 6b17cfc commit da8107a

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
@@ -96,7 +96,9 @@ function AuthScreensInitHandler() {
9696
const isSupportalTransition = currentUrl.includes('authTokenType=support');
9797
if (isLoggingInAsNewUser && isTransitioning) {
9898
Session.signOutAndRedirectToSignIn(false, isSupportalTransition);
99-
return;
99+
return () => {
100+
Session.cleanupSession();
101+
};
100102
}
101103

102104
NetworkConnection.listenForReconnect();

0 commit comments

Comments
 (0)