fix: use globalThis instead of window to prevent SSR ReferenceError in login form passkey check
This commit is contained in:
@@ -302,7 +302,7 @@ export default function LoginForm() {
|
||||
</form>
|
||||
|
||||
{/* Explicit passkey login button */}
|
||||
{"PublicKeyCredential" in window && !showPassword && (
|
||||
{"PublicKeyCredential" in globalThis && !showPassword && (
|
||||
<button
|
||||
onClick={handlePasskeyLogin}
|
||||
disabled={isLoading}
|
||||
|
||||
Reference in New Issue
Block a user