From e67dd01a42f3bfda670bd69d6f2095e9e56e318f Mon Sep 17 00:00:00 2001 From: Brandon Stites <42391420+stitesExpensify@users.noreply.github.com> Date: Mon, 11 May 2026 12:59:35 -0400 Subject: [PATCH] Revert "Preserve information about saml session when loging out previous user" --- src/pages/LogOutPreviousUserPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/LogOutPreviousUserPage.tsx b/src/pages/LogOutPreviousUserPage.tsx index ec7160977b0e..251beda95043 100644 --- a/src/pages/LogOutPreviousUserPage.tsx +++ b/src/pages/LogOutPreviousUserPage.tsx @@ -26,7 +26,7 @@ function LogOutPreviousUserPage({route}: LogOutPreviousUserPageProps) { const [session] = useOnyx(ONYXKEYS.SESSION); const [account] = useOnyx(ONYXKEYS.ACCOUNT); const isAccountLoading = account?.isLoading; - const {authTokenType, shortLivedAuthToken = '', exitTo, isSAML} = route?.params ?? {}; + const {authTokenType, shortLivedAuthToken = '', exitTo} = route?.params ?? {}; useEffect(() => { const sessionEmail = session?.email; @@ -57,7 +57,7 @@ function LogOutPreviousUserPage({route}: LogOutPreviousUserPageProps) { // Even if the user was already authenticated in NewDot, we need to reauthenticate them with shortLivedAuthToken, // because the old authToken stored in Onyx may be invalid. - signInWithShortLivedAuthToken(shortLivedAuthToken, !!isSAML); + signInWithShortLivedAuthToken(shortLivedAuthToken); // We only want to run this effect once on mount (when the page first loads after transitioning from OldDot) // eslint-disable-next-line react-hooks/exhaustive-deps