From 02e82f5b90796b7e865bdf8dc199954201afaf73 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Wed, 27 May 2026 04:19:47 +0800 Subject: [PATCH] fix: use globalThis instead of window to prevent SSR ReferenceError in login form passkey check --- components/auth/login-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index c11c88d..70d0a96 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -302,7 +302,7 @@ export default function LoginForm() { {/* Explicit passkey login button */} - {"PublicKeyCredential" in window && !showPassword && ( + {"PublicKeyCredential" in globalThis && !showPassword && (