Aktualisiere Hinweise zur Verwendung von Authenticatoren in Firefox und passe die bevorzugte Authenticator-Typen für die Passkey-Registrierung an.
All checks were successful
Code Analysis and Production Deploy / analyze (push) Has been skipped
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 1m55s

This commit is contained in:
Torsten Schulz (local)
2026-05-15 14:24:40 +02:00
parent 5f96f719c1
commit 806a4be2f9

View File

@@ -206,7 +206,7 @@
Passkeys erlauben eine Anmeldung ohne Passwort. Je nach Gerät erfolgt die Einrichtung lokal oder über Smartphone/USB-Sicherheitsschlüssel.
</p>
<p class="text-xs text-gray-500 mb-4">
Hinweis: Unter Firefox wird r maximale Kompatibilität ein externer Authenticator (Smartphone oder USB-Sicherheitsschlüssel) bevorzugt.
Hinweis: Unter Firefox wird der Smartphone-Authenticator (QR/Hybrid) bevorzugt.
</p>
<p
@@ -419,12 +419,12 @@ const addPasskey = async () => {
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 } }