Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/LogOutPreviousUserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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} = route?.params ?? {};
const {authTokenType, shortLivedAuthToken = '', exitTo, isSAML} = route?.params ?? {};

useEffect(() => {
const sessionEmail = session?.email;
Expand Down Expand Up @@ -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);
signInWithShortLivedAuthToken(shortLivedAuthToken, !!isSAML);

// 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
Expand Down
Loading