mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-04 13:21:45 +00:00
fix: use credProps to save passkey on firefox android (#1055)
This commit is contained in:
@@ -81,6 +81,7 @@ func (s *WebAuthnService) BeginRegistration(ctx context.Context, userID string)
|
|||||||
&user,
|
&user,
|
||||||
webauthn.WithResidentKeyRequirement(protocol.ResidentKeyRequirementRequired),
|
webauthn.WithResidentKeyRequirement(protocol.ResidentKeyRequirementRequired),
|
||||||
webauthn.WithExclusions(user.WebAuthnCredentialDescriptors()),
|
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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to begin WebAuthn registration: %w", err)
|
return nil, fmt.Errorf("failed to begin WebAuthn registration: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user