From 806a4be2f960433f6a43e4b92428dc8d17f0b2cb Mon Sep 17 00:00:00 2001
From: "Torsten Schulz (local)"
- Hinweis: Unter Firefox wird für maximale Kompatibilität ein externer Authenticator (Smartphone oder USB-Sicherheitsschlüssel) bevorzugt. + Hinweis: Unter Firefox wird der Smartphone-Authenticator (QR/Hybrid) bevorzugt.
{ const name = window.prompt('Name für den Passkey (z.B. "iPhone", "Laptop"):', 'Passkey') || 'Passkey' const mod = await import('@simplewebauthn/browser') - // Firefox auf Linux: externen Authenticator (USB/Smartphone) bevorzugen. + // Firefox auf Linux: Smartphone-Flow (Hybrid/QR) bevorzugen. // Chromium: localDevice nur setzen, wenn das Gerät wirklich einen Platform-Authenticator hat. const firefox = isFirefoxBrowser() const platformAvailable = await hasPlatformAuthenticator() const preferredAuthenticatorType = firefox - ? 'securityKey' + ? 'remoteDevice' : (platformAvailable ? 'localDevice' : undefined) const registrationOptionsRequest = preferredAuthenticatorType ? { method: 'POST', body: { preferredAuthenticatorType } }