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

This commit is contained in:
Tom Moor authored and GitHub committed 2025-07-08 02:30:57 +00:00
1 parent a6b0fcff48
commit d5504be686
2 files changed
+2 -2

No files matched your search

+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);