chore: Remove OTP for desktop login for now (#9566)

This commit is contained in:
Tom Moor
2025-07-07 22:30:57 -04:00
committed by GitHub
parent a6b0fcff48
commit d5504be686
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 <WorkspaceSetup onBack={onBack} />;
@@ -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<HTMLInputElement>) => {
setEmail(event.target.value);