From d5504be68687f91c534282cf3b7e256bee050518 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Jul 2025 22:30:57 -0400 Subject: [PATCH] chore: Remove OTP for desktop login for now (#9566) --- app/scenes/Login/Login.tsx | 2 +- app/scenes/Login/components/AuthenticationProvider.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Login/Login.tsx b/app/scenes/Login/Login.tsx index f12ba85a54..0e5eedadb9 100644 --- a/app/scenes/Login/Login.tsx +++ b/app/scenes/Login/Login.tsx @@ -202,7 +202,7 @@ function Login({ children, onBack }: Props) { (provider) => provider.id === auth.lastSignedIn && !isCreate ); const clientType = Desktop.isElectron() ? Client.Desktop : Client.Web; - const preferOTP = Desktop.isElectron() || isPWA; + const preferOTP = isPWA; if (firstRun) { return ; diff --git a/app/scenes/Login/components/AuthenticationProvider.tsx b/app/scenes/Login/components/AuthenticationProvider.tsx index 9a2682d75a..ea3391207c 100644 --- a/app/scenes/Login/components/AuthenticationProvider.tsx +++ b/app/scenes/Login/components/AuthenticationProvider.tsx @@ -28,7 +28,7 @@ function AuthenticationProvider(props: Props) { const [email, setEmail] = React.useState(""); const { isCreate, id, name, authUrl, onEmailSuccess, ...rest } = props; const clientType = Desktop.isElectron() ? Client.Desktop : Client.Web; - const preferOTP = Desktop.isElectron() || isPWA; + const preferOTP = isPWA; const handleChangeEmail = (event: React.ChangeEvent) => { setEmail(event.target.value);