Merge branch 'dev'
CI/CD / deploy (push) Failing after 2m23s
Details
CI/CD / deploy (push) Failing after 2m23s
Details
This commit is contained in:
commit
e1aef83452
|
|
@ -133,9 +133,6 @@ export async function registerPasskey(
|
|||
throw new Error('WebAuthn is not supported in this browser');
|
||||
}
|
||||
|
||||
// Check platform authenticator availability
|
||||
const platformAvailable = await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable();
|
||||
|
||||
// Generate user ID (random bytes, not PII)
|
||||
const userId = crypto.getRandomValues(new Uint8Array(32));
|
||||
|
||||
|
|
@ -178,9 +175,10 @@ export async function registerPasskey(
|
|||
// Require user verification (biometric/PIN)
|
||||
userVerification: cfg.userVerification,
|
||||
|
||||
// Prefer platform authenticator, but allow cross-platform (security keys,
|
||||
// phone-as-authenticator) on devices without one (e.g. Linux desktops)
|
||||
...(platformAvailable ? { authenticatorAttachment: 'platform' as const } : {}),
|
||||
// No authenticatorAttachment constraint — let the browser offer ALL options:
|
||||
// platform (biometrics, PIN, Windows Hello), security keys, phone-as-authenticator.
|
||||
// Previously forced 'platform' when available, which blocked cross-platform
|
||||
// authenticators on Firefox and other browsers with limited platform UI.
|
||||
},
|
||||
|
||||
// Don't request attestation (privacy)
|
||||
|
|
|
|||
Loading…
Reference in New Issue