The best way to control Claude Code, Codex and more from any computer or phone
fix(desktop): stop the passkey dialog from popping as soon as sign-in opens (#7437)
Theo Browne committed
Aug 18, 2026 at 17:08 UTC
6a687ee43bf222672ab8d3f4c0bab3d8d174f79f
1 file changed
+11
-1
apps/web/src/main.tsx
+11
-1
@@ -1,7 +1,7 @@
1
import React from "react";
2
import ReactDOM from "react-dom/client";
3
import { ClerkProvider } from "@clerk/react";
4
-import { passkeys } from "@clerk/electron/passkeys";
4
+import { passkeys as electronPasskeys } from "@clerk/electron/passkeys";
5
import { ClerkProvider as ElectronClerkProvider } from "@clerk/electron/react";
6
import { createHashHistory, createBrowserHistory } from "@tanstack/react-router";
7
@@ -30,6 +30,16 @@ if (isElectron) {
30
31
const clerkPublishableKey = import.meta.env.VITE_CLERK_PUBLISHABLE_KEY as string | undefined;
32
33
+// @clerk/electron reports passkey autofill as supported but executes the
34
+// "quiet" autofill request as a modal prompt, so Clerk's sign-in form pops an
35
+// OS passkey dialog the moment it mounts. Report autofill as unsupported; the
36
+// explicit "Use passkey" button keeps working.
37
+// Upstream: https://github.com/clerk/javascript/issues/9496
38
+const passkeys = {
39
+ ...electronPasskeys,
40
+ isAutoFillSupported: () => Promise.resolve(false),
41
+};
42
+
43
const app = <AppRoot router={router} />;
44
45
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(