fix: use credProps to save passkey on firefox android (#1055)

This commit is contained in:
Quentin L'Hours
2025-10-27 09:48:24 +01:00
committed by GitHub
parent 8f98d8c0b4
commit 3f3b6b88fd

View File

@@ -81,6 +81,7 @@ func (s *WebAuthnService) BeginRegistration(ctx context.Context, userID string)
&user,
webauthn.WithResidentKeyRequirement(protocol.ResidentKeyRequirementRequired),
webauthn.WithExclusions(user.WebAuthnCredentialDescriptors()),
webauthn.WithExtensions(map[string]any{"credProps": true}), // Required for Firefox Android to properly save the key in Google password manager
)
if err != nil {
return nil, fmt.Errorf("failed to begin WebAuthn registration: %w", err)